diff --git a/src/main/java/dev/heliosclient/module/modules/movement/NoFall.java b/src/main/java/dev/heliosclient/module/modules/movement/NoFall.java index 1b1b8e0..005c013 100644 --- a/src/main/java/dev/heliosclient/module/modules/movement/NoFall.java +++ b/src/main/java/dev/heliosclient/module/modules/movement/NoFall.java @@ -178,7 +178,9 @@ public void onTick(TickEvent.PLAYER event) { @SubscribeEvent public void onMotion(PlayerMotionEvent event) { if (mc.player.fallDistance >= fallHeight.value && !mc.player.isCreative()) { - clutch(event); + if (mode.value == 2) { + clutch(event); + } } } @@ -274,7 +276,6 @@ public Item getResultItem() { public class ClutchManager { private boolean hasClutchedProperly = false; - public void clutch(ClutchItem item, BlockPos pos, PlayerMotionEvent event) { if (item == ClutchItem.WATER_BUCKET && mc.world.getDimensionKey() == DimensionTypes.THE_NETHER) { return; @@ -327,7 +328,7 @@ public void clutch(ClutchItem item, BlockPos pos, PlayerMotionEvent event) { hasClutchedProperly = newStack.getCount() != count; } - if(hasClutchedProperly){ + if(hasClutchedProperly()){ InventoryUtils.swapBackHotbar(); } }