Fix ammo multiplier exception in itemturret (#5446)

This commit is contained in:
Patrick 'Quezler' Mounier
2021-06-22 13:35:28 -04:00
committed by GitHub
parent b7d5f9a7ab
commit 42c643f769
@@ -136,6 +136,7 @@ public class ItemTurret extends Turret{
} }
BulletType type = ammoTypes.get(item); BulletType type = ammoTypes.get(item);
if(type == null) return;
totalAmmo += type.ammoMultiplier; totalAmmo += type.ammoMultiplier;
//find ammo entry by type //find ammo entry by type