Skip to content

Commit

Permalink
Fix javelin not taking damage on attack if it was full and adding amm…
Browse files Browse the repository at this point in the history
…o. Oops.
  • Loading branch information
bonii-xx committed Nov 21, 2014
1 parent 584c2e7 commit eea8d16
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -14,7 +14,7 @@ public boolean damageTool(ItemStack stack, int damage, EntityLivingBase entity)
IAmmo ammo =(IAmmo)stack.getItem();
if(tags.getInteger("Damage") == 0)
{
int rem = ammo.addAmmo(1, stack);
int rem = ammo.consumeAmmo(1, stack);
if(rem > 0)
return true;
}
Expand Down

0 comments on commit eea8d16

Please sign in to comment.