Don't place a block when opening energy store GUI.
This commit is contained in:
parent
7d7340111d
commit
e43a4dbf3c
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue