@@ -334,8 +334,10 @@ public class Platform
|
||||
|
||||
if( ( type.getType().isItem() && tile == null ) || type.hasPermissions( tile, x, y, z, side, p ) )
|
||||
{
|
||||
if( tile == null || type.getType() == GuiHostType.ITEM )
|
||||
p.openGui( AppEng.instance, type.ordinal() << 4 | ( 1 << 3 ), p.getEntityWorld(), x, y, z );
|
||||
if( tile != null && type.getType() == GuiHostType.ITEM )
|
||||
p.openGui( AppEng.instance, type.ordinal() << 4 | (1 << 3) , p.getEntityWorld(), x, y, z );
|
||||
else if ( tile == null && type.getType() == GuiHostType.ITEM )
|
||||
p.openGui( AppEng.instance, type.ordinal() << 4 | (0 << 3), p.getEntityWorld(), p.inventory.currentItem, 0, 0 );
|
||||
else
|
||||
p.openGui( AppEng.instance, type.ordinal() << 4 | ( side.ordinal() ), tile.getWorldObj(), x, y, z );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user