Fix non-continuous bullets being removed (#7423)

This commit is contained in:
MEEPofFaith
2022-08-23 05:04:35 -07:00
committed by GitHub
parent b3e94c8425
commit 0cc1f97450

View File

@@ -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;
}