Merge remote-tracking branch 'origin/master'

This commit is contained in:
Anuken
2022-08-23 09:10:20 -04:00
4 changed files with 229 additions and 228 deletions

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