Fix sink draining sound (#34173)
This commit is contained in:
parent
91d585e1fe
commit
9a237b0fce
|
|
@ -141,7 +141,7 @@ public sealed class DrainSystem : SharedDrainSystem
|
|||
if (!_solutionContainerSystem.ResolveSolution((uid, manager), DrainComponent.SolutionName, ref drain.Solution, out var drainSolution))
|
||||
continue;
|
||||
|
||||
if (drainSolution.AvailableVolume <= 0)
|
||||
if (drainSolution.Volume <= 0 && !drain.AutoDrain)
|
||||
{
|
||||
_ambientSoundSystem.SetAmbience(uid, false);
|
||||
continue;
|
||||
|
|
@ -158,7 +158,7 @@ public sealed class DrainSystem : SharedDrainSystem
|
|||
_puddles.Clear();
|
||||
_lookup.GetEntitiesInRange(Transform(uid).Coordinates, drain.Range, _puddles);
|
||||
|
||||
if (_puddles.Count == 0)
|
||||
if (_puddles.Count == 0 && drainSolution.Volume <= 0)
|
||||
{
|
||||
_ambientSoundSystem.SetAmbience(uid, false);
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Reference in New Issue