Fixed Bug: #0839 - Wireless terminal activate after Crafting Plan window

This commit is contained in:
AlgorithmX2
2014-08-08 21:18:54 -05:00
parent bbad15d2e8
commit 596b3818e3
2 changed files with 8 additions and 6 deletions
+6 -4
View File
@@ -307,9 +307,10 @@ public enum GuiBridge implements IGuiHandler
public Object getServerGuiElement(int ID_ORDINAL, EntityPlayer player, World w, int x, int y, int z)
{
ForgeDirection side = ForgeDirection.getOrientation( ID_ORDINAL & 0x07 );
GuiBridge ID = values()[ID_ORDINAL >> 3];
GuiBridge ID = values()[ID_ORDINAL >> 4];
boolean istem = ((ID_ORDINAL >> 3) & 1) == 1;
if ( ID.type.isItem() )
if ( ID.type.isItem() && istem )
{
ItemStack it = player.inventory.getCurrentItem();
Object myItem = getGuiObject( it, player, w, x, y, z );
@@ -358,9 +359,10 @@ public enum GuiBridge implements IGuiHandler
public Object getClientGuiElement(int ID_ORDINAL, EntityPlayer player, World w, int x, int y, int z)
{
ForgeDirection side = ForgeDirection.getOrientation( ID_ORDINAL & 0x07 );
GuiBridge ID = values()[ID_ORDINAL >> 3];
GuiBridge ID = values()[ID_ORDINAL >> 4];
boolean istem = ((ID_ORDINAL >> 3) & 1) == 1;
if ( ID.type.isItem() )
if ( ID.type.isItem() && istem )
{
ItemStack it = player.inventory.getCurrentItem();
Object myItem = getGuiObject( it, player, w, x, y, z );