Content ecs containers (#22484)
This commit is contained in:
@@ -91,7 +91,7 @@ public sealed class PartExchangerSystem : EntitySystem
|
||||
}
|
||||
foreach (var part in updatedParts)
|
||||
{
|
||||
machine.PartContainer.Insert(part.part, EntityManager);
|
||||
_container.Insert(part.part, machine.PartContainer);
|
||||
machineParts.Remove(part);
|
||||
}
|
||||
|
||||
@@ -140,7 +140,7 @@ public sealed class PartExchangerSystem : EntitySystem
|
||||
if (!machine.Requirements.ContainsKey(part.PartType))
|
||||
continue;
|
||||
|
||||
machine.PartContainer.Insert(partEnt, EntityManager);
|
||||
_container.Insert(partEnt, machine.PartContainer);
|
||||
machine.Progress[part.PartType]++;
|
||||
machineParts.Remove(pair);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user