mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-14 14:34:16 +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){
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user