Content ecs containers (#22484)
This commit is contained in:
@@ -138,7 +138,7 @@ public sealed class BinSystem : EntitySystem
|
||||
if (component.Whitelist != null && !component.Whitelist.IsValid(toInsert))
|
||||
return false;
|
||||
|
||||
component.ItemContainer.Insert(toInsert);
|
||||
_container.Insert(toInsert, component.ItemContainer);
|
||||
component.Items.Add(toInsert);
|
||||
Dirty(component);
|
||||
return true;
|
||||
@@ -162,7 +162,7 @@ public sealed class BinSystem : EntitySystem
|
||||
if (toRemove == null || toRemove != component.Items.LastOrDefault())
|
||||
return false;
|
||||
|
||||
if (!component.ItemContainer.Remove(toRemove.Value))
|
||||
if (!_container.Remove(toRemove.Value, component.ItemContainer))
|
||||
return false;
|
||||
|
||||
component.Items.Remove(toRemove.Value);
|
||||
|
||||
Reference in New Issue
Block a user