Merge remote-tracking branch 'space-station-14/master' into 02-05-2024-upstream

This commit is contained in:
Ed
2024-05-02 20:46:45 +03:00
152 changed files with 1869 additions and 1526 deletions

View File

@@ -82,7 +82,9 @@ namespace Content.Server.Storage.EntitySystems
if (component.Sound != null)
{
_audio.PlayPvs(component.Sound, uid);
// The entity is often deleted, so play the sound at its position rather than parenting
var coordinates = Transform(uid).Coordinates;
_audio.PlayPvs(component.Sound, coordinates);
}
component.Uses--;