Skip to content

Commit

Permalink
That was a mistake.
Browse files Browse the repository at this point in the history
  • Loading branch information
tanishisherewithhh committed Nov 25, 2024
1 parent 9e7ea96 commit 7970564
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -327,7 +328,7 @@ public void clutch(ClutchItem item, BlockPos pos, PlayerMotionEvent event) {
hasClutchedProperly = newStack.getCount() != count;
}

if(hasClutchedProperly){
if(hasClutchedProperly()){
InventoryUtils.swapBackHotbar();
}
}
Expand Down

0 comments on commit 7970564

Please sign in to comment.