Call the player update event
This commit is contained in:
parent
89a9923185
commit
34ead03432
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user