Skip to content

Commit

Permalink
NoFall consistently picks up Powder Snow after fall (#4761)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandBhasme authored Jul 21, 2024
1 parent fdf8e1c commit f99666f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ else if (mode.get() == Mode.Place) {
timer++;
if (mc.player.getBlockStateAtPos().getBlock() == placedItem1.block) {
useItem(InvUtils.findInHotbar(Items.BUCKET), false, targetPos, true);
} else if (mc.world.getBlockState(mc.player.getBlockPos().down()).getBlock() == Blocks.POWDER_SNOW && mc.player.fallDistance==0 && placedItem1.block==Blocks.POWDER_SNOW){ //check if the powder snow block is still there and the player is on the ground
useItem(InvUtils.findInHotbar(Items.BUCKET), false, targetPos.down(), true);
}
}
}
Expand Down

0 comments on commit f99666f

Please sign in to comment.