Fix pneumatic cannon (#7902)
This commit is contained in:
parent
5cfbac805b
commit
60c1614393
1 changed files with 2 additions and 2 deletions
|
|
@ -225,7 +225,7 @@ namespace Content.Server.PneumaticCannon
|
|||
if (storage.StoredEntities.Count == 0) return; // click sound?
|
||||
|
||||
var ent = _random.Pick(storage.StoredEntities);
|
||||
storage.Remove(ent);
|
||||
_storageSystem.RemoveAndDrop(comp.Owner, ent, storage);
|
||||
|
||||
SoundSystem.Play(Filter.Pvs(data.User), comp.FireSound.GetSound(), ((IComponent) comp).Owner, AudioParams.Default);
|
||||
if (EntityManager.HasComponent<CameraRecoilComponent>(data.User))
|
||||
|
|
@ -333,7 +333,7 @@ namespace Content.Server.PneumaticCannon
|
|||
if (storage.StoredEntities == null) return;
|
||||
foreach (var entity in storage.StoredEntities.ToArray())
|
||||
{
|
||||
storage.Remove(entity);
|
||||
_storageSystem.RemoveAndDrop(component.Owner, entity, storage);
|
||||
}
|
||||
|
||||
user.PopupMessage(Loc.GetString("pneumatic-cannon-component-ejected-all",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue