Fixed Bug: #0880 - ME Chest can't be protected by ME Security Terminal.
This commit is contained in:
parent
181b0b0a6a
commit
a0a4f8f58d
1 changed files with 4 additions and 1 deletions
|
@ -53,7 +53,10 @@ public class BlockChest extends AEBaseBlock
|
|||
{
|
||||
ICellHandler ch = AEApi.instance().registries().cell().getHandler( cell );
|
||||
|
||||
tg.openGui( p, ch, cell, side );
|
||||
if ( GuiBridge.GUI_CHEST.hasPermissions(tg, x, y, z, ForgeDirection.values()[side], p) )
|
||||
{
|
||||
tg.openGui( p, ch, cell, side );
|
||||
}
|
||||
}
|
||||
else
|
||||
p.addChatMessage( PlayerMessages.ChestCannotReadStorageCell.get() );
|
||||
|
|
Loading…
Reference in a new issue