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