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

@ -47,6 +47,14 @@ public class ToolPortableCell extends AEBasePoweredItem implements IStorageCell,
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)
{