Fixed tools not working due to a change in the onItemUse method fields in ItemStack.java

I will have to fix the dispenser logic. Manually right clicking works.
This commit is contained in:
Gunther De Wachter
2017-06-30 19:17:06 +02:00
parent 76f17ba53c
commit 7a8499c455
4 changed files with 7 additions and 4 deletions
@@ -236,8 +236,9 @@ public class ToolEntropyManipulator extends AEBasePoweredItem implements IBlockT
}
@Override
public EnumActionResult onItemUse( ItemStack item, EntityPlayer p, World w, BlockPos pos, EnumHand hand, EnumFacing side, float hitX, float hitY, float hitZ )
public EnumActionResult onItemUse( EntityPlayer p, World w, BlockPos pos, EnumHand hand, EnumFacing side, float hitX, float hitY, float hitZ )
{
final ItemStack item = p.getHeldItem(hand);
if( this.getAECurrentPower( item ) > 1600 )
{
if( !p.canPlayerEdit( pos, side, item ) )