Skip to content

Commit

Permalink
fix disable w-tapping working when mod is off
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyvest committed Nov 23, 2023
1 parent 46da49f commit 53b8306
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ private boolean setSprintState(KeyBinding keyBinding) {

@Redirect(method = "onLivingUpdate", at = @At(value = "FIELD", target = "Lnet/minecraft/client/entity/EntityPlayerSP;onGround:Z", ordinal = 0, opcode = Opcodes.GETFIELD))
private boolean redirectWTap(EntityPlayerSP instance) {
return !PolySprintConfig.INSTANCE.getDisableWTapSprint();
return !PolySprintConfig.INSTANCE.enabled || !PolySprintConfig.INSTANCE.getDisableWTapSprint();
}
}

0 comments on commit 53b8306

Please sign in to comment.