Fixed tools getting deleted when being used in off-hand.

This commit is contained in:
Gunther De Wachter
2017-07-02 07:33:16 +02:00
parent 5ebd8452bf
commit b67d7eed82
5 changed files with 17 additions and 17 deletions
@@ -215,7 +215,7 @@ public class ToolEntropyManipulator extends AEBasePoweredItem implements IBlockT
if( target == null )
{
return new ActionResult<ItemStack>( EnumActionResult.FAIL, p.getHeldItemMainhand() );
return new ActionResult<ItemStack>( EnumActionResult.FAIL, p.getHeldItem(hand) );
}
else
{
@@ -232,7 +232,7 @@ public class ToolEntropyManipulator extends AEBasePoweredItem implements IBlockT
}
}
return new ActionResult<ItemStack>( EnumActionResult.SUCCESS, p.getHeldItemMainhand() );
return new ActionResult<ItemStack>( EnumActionResult.SUCCESS, p.getHeldItem(hand) );
}
@Override