diff --git a/src/main/java/net/wurstclient/mixin/ClientPlayerEntityMixin.java b/src/main/java/net/wurstclient/mixin/ClientPlayerEntityMixin.java index 4fb8d3de88..b58b0de58d 100644 --- a/src/main/java/net/wurstclient/mixin/ClientPlayerEntityMixin.java +++ b/src/main/java/net/wurstclient/mixin/ClientPlayerEntityMixin.java @@ -169,8 +169,12 @@ private void afterUpdateNausea(CallbackInfo ci) tempCurrentScreen = null; } + /** + * This mixin allows AutoSprint to enable sprinting even when the player is + * too hungry. + */ @Inject(at = @At("HEAD"), method = "canSprint()Z", cancellable = true) - private void canSprint(CallbackInfoReturnable cir) + private void onCanSprint(CallbackInfoReturnable cir) { if(WurstClient.INSTANCE.getHax().autoSprintHack.shouldSprintHungry()) cir.setReturnValue(true);