diff --git a/dist/baritone-api-1.0.0.jar b/dist/baritone-api-1.0.0.jar index f918fe1..f71a4f0 100644 Binary files a/dist/baritone-api-1.0.0.jar and b/dist/baritone-api-1.0.0.jar differ diff --git a/dist/baritone-api-forge-1.0.0.jar b/dist/baritone-api-forge-1.0.0.jar index d20fab4..e32c8e0 100644 Binary files a/dist/baritone-api-forge-1.0.0.jar and b/dist/baritone-api-forge-1.0.0.jar differ diff --git a/dist/baritone-deobf-1.0.0.jar b/dist/baritone-deobf-1.0.0.jar index bf9efee..c50d934 100644 Binary files a/dist/baritone-deobf-1.0.0.jar and b/dist/baritone-deobf-1.0.0.jar differ diff --git a/dist/baritone-standalone-1.0.0.jar b/dist/baritone-standalone-1.0.0.jar index a107e18..1570536 100644 Binary files a/dist/baritone-standalone-1.0.0.jar and b/dist/baritone-standalone-1.0.0.jar differ diff --git a/dist/baritone-standalone-forge-1.0.0.jar b/dist/baritone-standalone-forge-1.0.0.jar index 5a52de9..745f6f2 100644 Binary files a/dist/baritone-standalone-forge-1.0.0.jar and b/dist/baritone-standalone-forge-1.0.0.jar differ diff --git a/dist/baritone-unoptimized-1.0.0.jar b/dist/baritone-unoptimized-1.0.0.jar index 9ade79b..a479a07 100644 Binary files a/dist/baritone-unoptimized-1.0.0.jar and b/dist/baritone-unoptimized-1.0.0.jar differ diff --git a/dist/checksums.txt b/dist/checksums.txt index e9fd9a8..e6d2980 100644 --- a/dist/checksums.txt +++ b/dist/checksums.txt @@ -1,6 +1,6 @@ -9d0650c1b2cdb25fc899163b93711a6243d8dc1f baritone-api-1.0.0.jar -f571f1b3e869962eadc78227ba034df733631289 baritone-deobf-1.0.0.jar -090f3754e3f65082de79acd81c671e2147789106 baritone-api-forge-1.0.0.jar -9baa2c6a32df462f2e4e0caedb6f5ca69764cafc baritone-standalone-1.0.0.jar -350d6bad357927f3f02b7625aa75c16edce2b1ee baritone-standalone-forge-1.0.0.jar -e6750c08310e354035dc5915fd7c87ac286e6880 baritone-unoptimized-1.0.0.jar +a502d3e35833c1c568256379d7957b753c50362d baritone-api-1.0.0.jar +1eee831f9b7e812dac99431b424f0a08218e82ba baritone-deobf-1.0.0.jar +e1b425684c3cca89bd6353e36b8b7c649c5e49b4 baritone-api-forge-1.0.0.jar +6818a55dc4eee1031fba2228d5f3452e21bb8ce3 baritone-standalone-1.0.0.jar +3fc8e268463d0b602fd47659d2483850e466b9b1 baritone-standalone-forge-1.0.0.jar +ff0b0494547a23873fd3d2a5b5af52074d892270 baritone-unoptimized-1.0.0.jar diff --git a/src/api/java/baritone/api/utils/Rotation.java b/src/api/java/baritone/api/utils/Rotation.java index ff91b81..7cfe668 100644 --- a/src/api/java/baritone/api/utils/Rotation.java +++ b/src/api/java/baritone/api/utils/Rotation.java @@ -7,10 +7,15 @@ public class Rotation { private final float pitch; public Rotation(float yaw, float pitch) { - this.yaw = yaw; - this.pitch = pitch; - if (Float.isInfinite(yaw) || Float.isNaN(yaw) || Float.isInfinite(pitch) || Float.isNaN(pitch)) { - throw new IllegalStateException(yaw + " " + pitch); + if (Float.isInfinite(yaw) || Float.isNaN(yaw)) { + this.yaw = 0; + } else { + this.yaw = yaw; + } + if (Float.isInfinite(pitch) || Float.isNaN(pitch)) { + this.pitch = 0; + } else { + this.pitch = pitch; } } diff --git a/src/launch/java/baritone/launch/mixins/MixinEntityPlayerSP.java b/src/launch/java/baritone/launch/mixins/MixinEntityPlayerSP.java index 26d1636..e2d88d7 100644 --- a/src/launch/java/baritone/launch/mixins/MixinEntityPlayerSP.java +++ b/src/launch/java/baritone/launch/mixins/MixinEntityPlayerSP.java @@ -14,6 +14,9 @@ import org.spongepowered.asm.mixin.injection.Redirect; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; + @Mixin(EntityPlayerSP.class) public class MixinEntityPlayerSP { @@ -74,6 +77,4 @@ private boolean isKeyDown(KeyBinding instance) { } return instance.isKeyDown(); } - - }