Don't place a block when opening energy store GUI.

This commit is contained in:
Alistair Buxton 2017-10-17 07:25:20 +01:00
parent 7d7340111d
commit e43a4dbf3c

View file

@ -107,6 +107,7 @@ public abstract class BlockEnergyStorage extends BaseTileBlock {
}
} else if (!player.isSneaking()){
player.openGui(Core.INSTANCE, guiID, world, pos.getX(), pos.getY(), pos.getZ());
return true;
}
return super.onBlockActivated(world, pos, state, player, hand, side, hitX, hitY, hitZ);