Fix gas tank bug (#10197)
* Fix gas tank bug * avoid partial connects * Revert "avoid partial connects" This reverts commit 598a871442b74bfe05948e3df8ed47722315722d.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using Content.Server.Atmos.Components;
|
||||
using Content.Server.Atmos.Components;
|
||||
using Content.Server.Atmos.EntitySystems;
|
||||
using Content.Server.Body.Components;
|
||||
using Content.Server.Hands.Systems;
|
||||
@@ -79,7 +79,7 @@ public sealed class InternalsSystem : EntitySystem
|
||||
|
||||
if (TryComp(component.GasTankEntity, out GasTankComponent? tank))
|
||||
{
|
||||
_gasTank.DisconnectFromInternals(tank, component.Owner);
|
||||
_gasTank.DisconnectFromInternals(tank);
|
||||
}
|
||||
|
||||
component.GasTankEntity = null;
|
||||
@@ -93,7 +93,7 @@ public sealed class InternalsSystem : EntitySystem
|
||||
|
||||
if (TryComp(component.GasTankEntity, out GasTankComponent? tank))
|
||||
{
|
||||
_gasTank.DisconnectFromInternals(tank, component.Owner);
|
||||
_gasTank.DisconnectFromInternals(tank);
|
||||
}
|
||||
|
||||
component.GasTankEntity = tankEntity;
|
||||
|
||||
Reference in New Issue
Block a user