Remove Ammo component references (#19537)

This commit is contained in:
metalgearsloth
2023-09-01 07:33:28 +10:00
committed by GitHub
parent df7d51ef3b
commit 3ab346f471
13 changed files with 35 additions and 21 deletions

View File

@@ -191,7 +191,7 @@ public sealed partial class GunSystem : SharedGunSystem
if (ent!.Value.IsClientSide())
Del(ent.Value);
else
RemComp<AmmoComponent>(ent.Value);
RemoveShootable(ent.Value);
continue;
}
@@ -225,7 +225,7 @@ public sealed partial class GunSystem : SharedGunSystem
if (ent!.Value.IsClientSide())
Del(ent.Value);
else
RemComp<AmmoComponent>(ent.Value);
RemoveShootable(ent.Value);
break;
case HitscanPrototype:
Audio.PlayPredicted(gun.SoundGunshot, gunUid, user);