Portable Cell and Wireless Terminal now properly open when click on things that can activate.
This commit is contained in:
parent
3925aba341
commit
3be3cac4cd
2 changed files with 16 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue