* Update SpawnAfterInteractSystem.cs
* what the fuck is that condition
---------
Co-authored-by: plykiya <plykiya@protonmail.com>
EntityManager.SpawnEntity(component.Prototype, args.ClickLocation.SnapToGrid(grid));
- if (component.RemoveOnInteract && stackComp == null && !((!EntityManager.EntityExists(uid) ? EntityLifeStage.Deleted : EntityManager.GetComponent<MetaDataComponent>(component.Owner).EntityLifeStage) >= EntityLifeStage.Deleted))
- EntityManager.DeleteEntity(uid);
+ if (component.RemoveOnInteract && stackComp == null)
+ TryQueueDel(uid);
}
}
}