Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandBhasme committed Jul 20, 2024
1 parent 99f950d commit e7c94a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ 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() == placedItem1.block) {
} else if (mc.world.getBlockState(mc.player.getBlockPos().down()).getBlock() == placedItem1.block) { //check if the block is still there
useItem(InvUtils.findInHotbar(Items.BUCKET), false, targetPos.down(), true);
}
}
Expand Down

0 comments on commit e7c94a0

Please sign in to comment.