Fix moss modifier using up ammo instead of adding it

This commit is contained in:
Bernhard Bonigl committed 2014-11-01 20:57:20 +01:00
1 parent 206e2ffe0a
commit f94d9bf351
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.consumeAmmo(1, stack);
int rem = ammo.addAmmo(1, stack);
if(rem > 0)
return true;
}