ECS Atmos Part 2: Moves a lot of Gas Mixture methods to AtmosphereSystem. (#4218)
This commit is contained in:
committed by
GitHub
parent
e16c23a747
commit
263c9ef974
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using Content.Server.Atmos.EntitySystems;
|
||||
using Content.Server.Atmos.Piping.Components;
|
||||
using Content.Server.Atmos.Piping.Unary.Components;
|
||||
using Content.Server.GameObjects.Components.NodeContainer.Nodes;
|
||||
@@ -88,7 +89,8 @@ namespace Content.Server.Atmos.Piping.Unary.EntitySystems
|
||||
if (MathHelper.CloseTo(removed.TotalMoles, 0f))
|
||||
return;
|
||||
|
||||
removed.ScrubInto(outlet.Air, scrubber.FilterGases);
|
||||
// TODO: Entity system dependency
|
||||
Get<AtmosphereSystem>().ScrubInto(removed, outlet.Air, scrubber.FilterGases);
|
||||
|
||||
// Remix the gases.
|
||||
tile.AssumeAir(removed);
|
||||
|
||||
Reference in New Issue
Block a user