Fixed #7011
This commit is contained in:
@@ -477,7 +477,7 @@ public class Turret extends ReloadTurret{
|
|||||||
|
|
||||||
//skip first entry if it has less than the required amount of ammo
|
//skip first entry if it has less than the required amount of ammo
|
||||||
if(ammo.size >= 2 && ammo.peek().amount < ammoPerShot && ammo.get(ammo.size - 2).amount >= ammoPerShot){
|
if(ammo.size >= 2 && ammo.peek().amount < ammoPerShot && ammo.get(ammo.size - 2).amount >= ammoPerShot){
|
||||||
totalAmmo -= ammo.pop().amount;
|
ammo.swap(ammo.size - 1, ammo.size - 2);
|
||||||
}
|
}
|
||||||
return ammo.size > 0 && ammo.peek().amount >= ammoPerShot;
|
return ammo.size > 0 && ammo.peek().amount >= ammoPerShot;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user