action refactor proper ecs edition (#27422)
This commit is contained in:
@@ -350,10 +350,7 @@ public sealed partial class StoreSystem
|
||||
|
||||
component.BoughtEntities.RemoveAt(i);
|
||||
|
||||
if (_actions.TryGetActionData(purchase, out var actionComponent, logError: false))
|
||||
{
|
||||
_actionContainer.RemoveAction(purchase, actionComponent);
|
||||
}
|
||||
_actionContainer.RemoveAction(purchase, logMissing: false);
|
||||
|
||||
EntityManager.DeleteEntity(purchase);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user