Merge pull request #1311 from ali1234/fixes

Don't place a block when opening energy store GUI.
This commit is contained in:
Modmuss50 2017-10-17 09:15:07 +02:00 committed by GitHub
commit 4d370f2264

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);