mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 11:49:37 +00:00
Remove useless passing of 1|2 to setblockstate
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user