Fixed Bug: #0880 - ME Chest can't be protected by ME Security Terminal.

This commit is contained in:
The Paper Pilot 2014-09-25 17:25:31 -05:00
parent 181b0b0a6a
commit a0a4f8f58d

View file

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