Portable Cell and Wireless Terminal now properly open when click on things that can activate.

This commit is contained in:
AlgorithmX2 2014-07-29 11:32:23 -05:00
parent 3925aba341
commit 3be3cac4cd
2 changed files with 16 additions and 0 deletions

View file

@ -46,6 +46,14 @@ public class ToolPortableCell extends AEBasePoweredItem implements IStorageCell,
Platform.openGUI( player, null, ForgeDirection.UNKNOWN, GuiBridge.GUI_PORTABLE_CELL );
return item;
}
@Override
public boolean onItemUse(ItemStack item, EntityPlayer player, World w, int x, int y, int z, int side,
float hitx, float hity, float hitz)
{
onItemRightClick( item, w, player );
return true;
}
@Override
public void addInformation(ItemStack is, EntityPlayer player, List lines, boolean advancedItemTooltips)

View file

@ -39,6 +39,14 @@ public class ToolWirelessTerminal extends AEBasePoweredItem implements IWireless
return item;
}
@Override
public boolean onItemUse(ItemStack item, EntityPlayer player, World w, int x, int y, int z, int side,
float hitx, float hity, float hitz)
{
onItemRightClick( item, w, player );
return true;
}
@Override
public void addInformation(ItemStack i, EntityPlayer p, List l, boolean b)
{