diff --git a/src/main/java/baritone/bot/behavior/impl/PathingBehavior.java b/src/main/java/baritone/bot/behavior/impl/PathingBehavior.java index 2fb69f8b..062d14b4 100644 --- a/src/main/java/baritone/bot/behavior/impl/PathingBehavior.java +++ b/src/main/java/baritone/bot/behavior/impl/PathingBehavior.java @@ -5,10 +5,10 @@ import baritone.bot.pathing.path.IPath; import baritone.bot.pathing.path.PathExecutor; public class PathingBehavior extends Behavior { + public static final PathingBehavior INSTANCE = new PathingBehavior(); - private PathingBehavior() { - } + private PathingBehavior() {} private PathExecutor current; @@ -30,5 +30,4 @@ public class PathingBehavior extends Behavior { public IPath getPath() { return current.getPath(); } - } diff --git a/src/main/java/baritone/launch/mixins/MixinEntityPlayerSP.java b/src/main/java/baritone/launch/mixins/MixinEntityPlayerSP.java index c062a1db..d99cdbc9 100644 --- a/src/main/java/baritone/launch/mixins/MixinEntityPlayerSP.java +++ b/src/main/java/baritone/launch/mixins/MixinEntityPlayerSP.java @@ -34,7 +34,7 @@ public class MixinEntityPlayerSP { target = "Lnet/minecraft/client/entity/AbstractClientPlayer;onUpdate()V" ) ) - public void onUpdate(CallbackInfo ci) { - + private void onUpdate(CallbackInfo ci) { + Baritone.INSTANCE.getGameEventHandler().onPlayerUpdate(); } } diff --git a/src/main/java/baritone/launch/mixins/MixinEntityRenderer.java b/src/main/java/baritone/launch/mixins/MixinEntityRenderer.java index 57a083d7..ec3fd88b 100644 --- a/src/main/java/baritone/launch/mixins/MixinEntityRenderer.java +++ b/src/main/java/baritone/launch/mixins/MixinEntityRenderer.java @@ -13,13 +13,12 @@ public class MixinEntityRenderer { @Inject( method = "renderWorldPass", at = @At( - value = "INVOKE_STRING", - target = "Lnet/minecraft/profiler/Profiler;endStartSection(Ljava/lang/String;)V", args = { "ldc=hand" } + value = "INVOKE_STRING", + target = "Lnet/minecraft/profiler/Profiler;endStartSection(Ljava/lang/String;)V", + args = { "ldc=hand" } ) ) private void renderWorldPass(CallbackInfo ci) { Baritone.INSTANCE.getGameEventHandler().onRenderPass(); } - - }