Call the player update event

This commit is contained in:
Brady 2018-08-05 00:25:08 -05:00
parent 89a9923185
commit 34ead03432
No known key found for this signature in database
GPG Key ID: 73A788379A197567
3 changed files with 7 additions and 9 deletions

View File

@ -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();
}
}

View File

@ -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();
}
}

View File

@ -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();
}
}