Fix Infinite Firing?

Attempt 1
This commit is contained in:
C_Corp2002 authored and GitHub committed 2023-11-20 15:55:41 -08:00
1 parent 6b67a758c8
commit 343f3af943
1 file changed
+2 -2
@@ -198,7 +198,7 @@ public class GunnerEquipment implements Cloneable {
this.WorldName = Entity.getWorld().getName(); this.WorldName = Entity.getWorld().getName();
this.NextShotTime = System.currentTimeMillis() + 1000; this.NextShotTime = System.currentTimeMillis() + 1000;
for (int i = 0; i <= this.shotAmount /* range */; i += 1) { //for (int i = 0; i <= this.shotAmount /* range */; i += 1) {
if (living == null || living.isDead()) { if (living == null || living.isDead()) {
return; return;
} }
@@ -279,6 +279,6 @@ public class GunnerEquipment implements Cloneable {
} }
} }
} //}
} }