From 0cc1f974503e63c26b8197558f7fc79d049ec350 Mon Sep 17 00:00:00 2001 From: MEEPofFaith <54301439+MEEPofFaith@users.noreply.github.com> Date: Tue, 23 Aug 2022 05:04:35 -0700 Subject: [PATCH] Fix non-continuous bullets being removed (#7423) --- core/src/mindustry/entities/comp/WeaponsComp.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/entities/comp/WeaponsComp.java b/core/src/mindustry/entities/comp/WeaponsComp.java index bc0b0c85c5..e3de8b484a 100644 --- a/core/src/mindustry/entities/comp/WeaponsComp.java +++ b/core/src/mindustry/entities/comp/WeaponsComp.java @@ -82,7 +82,7 @@ abstract class WeaponsComp implements Teamc, Posc, Rotc, Velc, Statusc{ @Override public void remove(){ for(WeaponMount mount : mounts){ - if(mount.bullet != null && mount.bullet.owner == self()){ + if(mount.weapon.continuous && mount.bullet != null && mount.bullet.owner == self()){ mount.bullet.time = mount.bullet.lifetime - 10f; mount.bullet = null; }