-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed Fishing Helper at large coordinates caused by float precision loss
Bump version to 1.7.3
- Loading branch information
1 parent
7d2aac6
commit 32b7e2b
Showing
3 changed files
with
19 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 8 additions & 1 deletion
9
src/main/java/com/kevinthegreat/skyblockmod/mixins/ClientPlayNetworkHandlerMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,24 @@ | ||
package com.kevinthegreat.skyblockmod.mixins; | ||
|
||
import com.kevinthegreat.skyblockmod.SkyblockMod; | ||
import net.minecraft.client.MinecraftClient; | ||
import net.minecraft.client.network.ClientPlayNetworkHandler; | ||
import net.minecraft.network.packet.s2c.play.PlaySoundIdS2CPacket; | ||
import org.spongepowered.asm.mixin.Final; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.Shadow; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
|
||
@Mixin(ClientPlayNetworkHandler.class) | ||
public class ClientPlayNetworkHandlerMixin { | ||
@Shadow | ||
@Final | ||
private MinecraftClient client; | ||
|
||
@Inject(method = "onPlaySoundId", at = @At(value = "HEAD")) | ||
private void onPlaySoundId(PlaySoundIdS2CPacket packet, CallbackInfo ci) { | ||
SkyblockMod.skyblockMod.fishing.onSound(packet); | ||
SkyblockMod.skyblockMod.fishing.onSound(client, packet); | ||
} | ||
} |