Fixed tools getting deleted when being used in off-hand.
This commit is contained in:
@@ -55,12 +55,12 @@ public class ToolBiometricCard extends AEBaseItem implements IBiometricCard
|
||||
{
|
||||
if( p.isSneaking() )
|
||||
{
|
||||
this.encode( p.getHeldItemMainhand(), p );
|
||||
this.encode( p.getHeldItem(hand), p );
|
||||
p.swingArm( hand );
|
||||
return new ActionResult<ItemStack>( EnumActionResult.SUCCESS, p.getHeldItemMainhand() );
|
||||
return new ActionResult<ItemStack>( EnumActionResult.SUCCESS, p.getHeldItem(hand) );
|
||||
}
|
||||
|
||||
return new ActionResult<ItemStack>( EnumActionResult.PASS, p.getHeldItemMainhand() );
|
||||
return new ActionResult<ItemStack>( EnumActionResult.PASS, p.getHeldItem(hand) );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user