mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-13 05:54:17 +01:00
Removed unnecessary blocksnapshot.restore
This commit is contained in:
parent
f3b6a684f9
commit
d8054775d5
@ -300,7 +300,6 @@ public class BlockzapperItem extends ZapperItem {
|
||||
public static boolean isAllowedToPlace(World world, BlockPos pos,PlayerEntity player){
|
||||
BlockSnapshot blocksnapshot = BlockSnapshot.getBlockSnapshot(world, pos);
|
||||
if (ForgeEventFactory.onBlockPlace(player, blocksnapshot, Direction.UP)) {
|
||||
blocksnapshot.restore(true, false);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user