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;
|
import baritone.bot.pathing.path.PathExecutor;
|
||||||
|
|
||||||
public class PathingBehavior extends Behavior {
|
public class PathingBehavior extends Behavior {
|
||||||
|
|
||||||
public static final PathingBehavior INSTANCE = new PathingBehavior();
|
public static final PathingBehavior INSTANCE = new PathingBehavior();
|
||||||
|
|
||||||
private PathingBehavior() {
|
private PathingBehavior() {}
|
||||||
}
|
|
||||||
|
|
||||||
private PathExecutor current;
|
private PathExecutor current;
|
||||||
|
|
||||||
@ -30,5 +30,4 @@ public class PathingBehavior extends Behavior {
|
|||||||
public IPath getPath() {
|
public IPath getPath() {
|
||||||
return current.getPath();
|
return current.getPath();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,7 @@ public class MixinEntityPlayerSP {
|
|||||||
target = "Lnet/minecraft/client/entity/AbstractClientPlayer;onUpdate()V"
|
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(
|
@Inject(
|
||||||
method = "renderWorldPass",
|
method = "renderWorldPass",
|
||||||
at = @At(
|
at = @At(
|
||||||
value = "INVOKE_STRING",
|
value = "INVOKE_STRING",
|
||||||
target = "Lnet/minecraft/profiler/Profiler;endStartSection(Ljava/lang/String;)V", args = { "ldc=hand" }
|
target = "Lnet/minecraft/profiler/Profiler;endStartSection(Ljava/lang/String;)V",
|
||||||
|
args = { "ldc=hand" }
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
private void renderWorldPass(CallbackInfo ci) {
|
private void renderWorldPass(CallbackInfo ci) {
|
||||||
Baritone.INSTANCE.getGameEventHandler().onRenderPass();
|
Baritone.INSTANCE.getGameEventHandler().onRenderPass();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user