Fix GasMixers/Filters not working (#26568)
* Fix GasMixers/Filters not working * OKAY GAS FILTERS TOO --------- Co-authored-by: Plykiya <plykiya@protonmail.com>
This commit is contained in:
@@ -53,7 +53,7 @@ namespace Content.Server.Atmos.Piping.Trinary.EntitySystems
|
|||||||
private void OnFilterUpdated(EntityUid uid, GasFilterComponent filter, ref AtmosDeviceUpdateEvent args)
|
private void OnFilterUpdated(EntityUid uid, GasFilterComponent filter, ref AtmosDeviceUpdateEvent args)
|
||||||
{
|
{
|
||||||
if (!filter.Enabled
|
if (!filter.Enabled
|
||||||
|| !_nodeContainer.TryGetNodes(uid, filter.InletName, filter.OutletName, filter.FilterName, out PipeNode? inletNode, out PipeNode? filterNode, out PipeNode? outletNode)
|
|| !_nodeContainer.TryGetNodes(uid, filter.InletName, filter.FilterName, filter.OutletName, out PipeNode? inletNode, out PipeNode? filterNode, out PipeNode? outletNode)
|
||||||
|| outletNode.Air.Pressure >= Atmospherics.MaxOutputPressure) // No need to transfer if target is full.
|
|| outletNode.Air.Pressure >= Atmospherics.MaxOutputPressure) // No need to transfer if target is full.
|
||||||
{
|
{
|
||||||
_ambientSoundSystem.SetAmbience(uid, false);
|
_ambientSoundSystem.SetAmbience(uid, false);
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ namespace Content.Server.NodeContainer.EntitySystems
|
|||||||
&& ent.Comp.Nodes.TryGetValue(id2, out var n2)
|
&& ent.Comp.Nodes.TryGetValue(id2, out var n2)
|
||||||
&& n2 is T2 t2
|
&& n2 is T2 t2
|
||||||
&& ent.Comp.Nodes.TryGetValue(id3, out var n3)
|
&& ent.Comp.Nodes.TryGetValue(id3, out var n3)
|
||||||
&& n2 is T3 t3)
|
&& n3 is T3 t3)
|
||||||
{
|
{
|
||||||
node1 = t1;
|
node1 = t1;
|
||||||
node2 = t2;
|
node2 = t2;
|
||||||
|
|||||||
Reference in New Issue
Block a user