Fix javelin not taking damage on attack if it was full and adding ammo. Oops.

This commit is contained in:
Bernhard Bonigl committed 2014-11-21 19:16:12 +01:00
1 parent 584c2e77f6
commit eea8d165a4
1 file changed
+1 -1
@@ -14,7 +14,7 @@ public class WeaponryActiveToolMod extends ActiveToolMod {
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;
}