Remove useless passing of 1|2 to setblockstate

This commit is contained in:
Vincent Lee committed 2020-01-31 12:59:33 -06:00
1 parent d68f34fcfe
commit ef79dc7507
14 files changed
+19 -19

No files matched your search

@@ -63,7 +63,7 @@ public class BlockAltGrass extends BlockMod {
ItemStack held = player.getHeldItem(hand);
if(held.getItem() instanceof HoeItem && world.isAirBlock(pos.up())) {
held.damageItem(1, player, e -> e.sendBreakAnimation(hand));
world.setBlockState(pos, Blocks.FARMLAND.getDefaultState(), 1 | 2);
world.setBlockState(pos, Blocks.FARMLAND.getDefaultState());
return ActionResultType.SUCCESS;
}