Fixes transparency of tab button icons.

Fixes priority sub-gui returning to ME-chest-interface rather than storage-cell interface for ME chests.
This commit is contained in:
Sebastian Hartte
2020-06-14 19:26:52 +02:00
parent 42651ed087
commit 8e8cbca57b
6 changed files with 48 additions and 51 deletions
@@ -90,16 +90,13 @@ public class BlockChest extends AEBaseTileBlock<TileChest>
return ActionResultType.SUCCESS;
}
if( hit.getFace() != tg.getUp() )
{
ContainerOpener.openContainer(ContainerChest.TYPE, p, ContainerLocator.forTileEntitySide(tg, hit.getFace()));
}
else
{
if (hit.getFace() == tg.getUp()) {
if( !tg.openGui( p ) )
{
p.sendMessage( PlayerMessages.ChestCannotReadStorageCell.get() );
}
} else {
ContainerOpener.openContainer(ContainerChest.TYPE, p, ContainerLocator.forTileEntitySide(tg, hit.getFace()));
}
return ActionResultType.SUCCESS;