diff --git a/src/main/java/mod/acgaming/universaltweaks/mods/elenaidodge2/UTED2Sprinting.java b/src/main/java/mod/acgaming/universaltweaks/mods/elenaidodge2/UTED2Sprinting.java index 8e4a2896..ff269d13 100644 --- a/src/main/java/mod/acgaming/universaltweaks/mods/elenaidodge2/UTED2Sprinting.java +++ b/src/main/java/mod/acgaming/universaltweaks/mods/elenaidodge2/UTED2Sprinting.java @@ -33,8 +33,8 @@ public void utED2SprintingClient(TickEvent.PlayerTickEvent event) { if (event.phase == TickEvent.Phase.START && event.player instanceof EntityPlayerSP - && (((EntityPlayerSP) event.player).sprintingTicksLeft < 5 || FeathersHelper.getFeatherLevel((EntityPlayerSP) event.player) == 0) - && FeathersHelper.getFeatherLevel((EntityPlayerSP) event.player) < UTConfigMods.ELENAI_DODGE_2.utED2SprintingFeatherRequirement) + && (((EntityPlayerSP) event.player).sprintingTicksLeft < 5 || FeathersHelper.getFeatherLevel((EntityPlayerSP) event.player) - FeathersHelper.getWeight((EntityPlayerSP) event.player) == 0) + && FeathersHelper.getFeatherLevel((EntityPlayerSP) event.player) - FeathersHelper.getWeight((EntityPlayerSP) event.player) < UTConfigMods.ELENAI_DODGE_2.utED2SprintingFeatherRequirement) { event.player.setSprinting(false); KeyBinding.setKeyBindState(Minecraft.getMinecraft().gameSettings.keyBindSprint.getKeyCode(), false);