Implement config option for operators to bypass security, added turbine dump/dump excess functionality

This commit is contained in:
aidancbrady committed 2016-06-30 12:25:20 -04:00
1 parent 8f8f1751ec
commit 3b214376ba
10 files changed
+111 -16

No files matched your search

@@ -688,7 +688,7 @@ public class BlockMachine extends BlockContainer implements ISpecialBounds, IBlo
{
String owner = ((ISecurityTile)tileEntity).getSecurity().getOwner();
if(owner == null || entityplayer.getCommandSenderName().equals(owner))
if(MekanismUtils.isOp((EntityPlayerMP)entityplayer) || owner == null || entityplayer.getCommandSenderName().equals(owner))
{
entityplayer.openGui(Mekanism.instance, type.guiId, world, x, y, z);
}