Removed unnecessary blocksnapshot.restore

This commit is contained in:
s0127943 2021-02-07 01:03:53 +01:00
parent f3b6a684f9
commit d8054775d5

View File

@ -300,7 +300,6 @@ public class BlockzapperItem extends ZapperItem {
public static boolean isAllowedToPlace(World world, BlockPos pos,PlayerEntity player){ public static boolean isAllowedToPlace(World world, BlockPos pos,PlayerEntity player){
BlockSnapshot blocksnapshot = BlockSnapshot.getBlockSnapshot(world, pos); BlockSnapshot blocksnapshot = BlockSnapshot.getBlockSnapshot(world, pos);
if (ForgeEventFactory.onBlockPlace(player, blocksnapshot, Direction.UP)) { if (ForgeEventFactory.onBlockPlace(player, blocksnapshot, Direction.UP)) {
blocksnapshot.restore(true, false);
return false; return false;
} }
return true; return true;