Use RemCompDeferred for portals (#14896)

This commit is contained in:
metalgearsloth
2023-03-28 05:41:38 +11:00
committed by GitHub
parent 57094966ce
commit 9afb753374

View File

@@ -132,7 +132,7 @@ public abstract class SharedPortalSystem : EntitySystem
// if they came from (not us), remove the timeout
if (TryComp<PortalTimeoutComponent>(subject, out var timeout) && timeout.EnteredPortal != uid)
{
RemComp<PortalTimeoutComponent>(subject);
RemCompDeferred<PortalTimeoutComponent>(subject);
}
}