Fix error when deleting a toggled ToggleableClothingComponent (#39191)
This commit is contained in:
@@ -213,7 +213,7 @@ public sealed class ToggleableClothingSystem : EntitySystem
|
||||
if (!TryComp(component.AttachedUid, out ToggleableClothingComponent? toggleComp))
|
||||
return;
|
||||
|
||||
if (toggleComp.LifeStage > ComponentLifeStage.Running)
|
||||
if (LifeStage(component.AttachedUid) > EntityLifeStage.MapInitialized)
|
||||
return;
|
||||
|
||||
// As unequipped gets called in the middle of container removal, we cannot call a container-insert without causing issues.
|
||||
|
||||
Reference in New Issue
Block a user