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