Disassemble Storages Cells regardless of where your looking.

This commit is contained in:
AlgorithmX2 2014-06-29 12:43:09 -05:00
parent 297c957787
commit 2c77242667

View file

@ -178,8 +178,7 @@ public class ItemBasicStorageCell extends AEBaseItem implements IStorageCell, II
return true; return true;
} }
@Override private boolean dissassembleDrive(ItemStack stack, World world, EntityPlayer player)
public boolean onItemUseFirst(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ)
{ {
if ( player.isSneaking() ) if ( player.isSneaking() )
{ {
@ -213,4 +212,17 @@ public class ItemBasicStorageCell extends AEBaseItem implements IStorageCell, II
} }
return false; return false;
} }
@Override
public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player)
{
dissassembleDrive( stack, world, player );
return stack;
}
@Override
public boolean onItemUseFirst(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ)
{
return dissassembleDrive( stack, world, player );
}
} }