mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 17:04:24 +00:00
Fix javelin not taking damage on attack if it was full and adding ammo. Oops.
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user