mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
A few bug fixes, added recipes for Security Desk
This commit is contained in:
1 parent
a18da2ad27
commit
c481180088
16 files changed
+76
-26
No files matched your search
@@ -671,6 +671,24 @@ public class BlockMachine extends BlockContainer implements ISpecialBounds, IBlo
|
||||
return true;
|
||||
}
|
||||
|
||||
break;
|
||||
case TELEPORTER:
|
||||
case QUANTUM_ENTANGLOPORTER:
|
||||
if(!entityplayer.isSneaking())
|
||||
{
|
||||
String owner = ((ISecurityTile)tileEntity).getSecurity().getOwner();
|
||||
|
||||
if(owner == null || entityplayer.getCommandSenderName().equals(owner))
|
||||
{
|
||||
entityplayer.openGui(Mekanism.instance, type.guiId, world, x, y, z);
|
||||
}
|
||||
else {
|
||||
SecurityUtils.displayNoAccess(entityplayer);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
break;
|
||||
default:
|
||||
if(!entityplayer.isSneaking() && type.guiId != -1)
|
||||
|
||||
Reference in new issue
Block a user