From e43a4dbf3cda813c43987b903f8fb64eec857f15 Mon Sep 17 00:00:00 2001 From: Alistair Buxton Date: Tue, 17 Oct 2017 07:25:20 +0100 Subject: [PATCH] Don't place a block when opening energy store GUI. --- src/main/java/techreborn/blocks/storage/BlockEnergyStorage.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/techreborn/blocks/storage/BlockEnergyStorage.java b/src/main/java/techreborn/blocks/storage/BlockEnergyStorage.java index 3551388c8..1346f22db 100644 --- a/src/main/java/techreborn/blocks/storage/BlockEnergyStorage.java +++ b/src/main/java/techreborn/blocks/storage/BlockEnergyStorage.java @@ -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);