Remove workaround for engine bug in disposals.
This commit is contained in:
@@ -23,7 +23,6 @@ namespace Content.Server.Disposal.Unit.Components
|
|||||||
{
|
{
|
||||||
public override string Name => "DisposalHolder";
|
public override string Name => "DisposalHolder";
|
||||||
|
|
||||||
private bool _deletionRequested = false;
|
|
||||||
private Container _contents = null!;
|
private Container _contents = null!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -113,7 +112,7 @@ namespace Content.Server.Disposal.Unit.Components
|
|||||||
|
|
||||||
public void ExitDisposals()
|
public void ExitDisposals()
|
||||||
{
|
{
|
||||||
if (_deletionRequested || Deleted)
|
if (Deleted)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
PreviousTube = null;
|
PreviousTube = null;
|
||||||
@@ -144,9 +143,7 @@ namespace Content.Server.Disposal.Unit.Components
|
|||||||
Air.Clear();
|
Air.Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: This is a workaround for https://github.com/space-wizards/RobustToolbox/issues/1646
|
Owner.Delete();
|
||||||
Owner.SpawnTimer(TimeSpan.Zero, () => Owner.Delete());
|
|
||||||
_deletionRequested = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Update(float frameTime)
|
public void Update(float frameTime)
|
||||||
|
|||||||
Reference in New Issue
Block a user