ECS construction machines (#6354)
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Content.Server.Construction.Components;
|
||||
using Content.Shared.Construction;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Shared.Containers;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.IoC;
|
||||
using Robust.Shared.Log;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
|
||||
@@ -101,7 +99,7 @@ namespace Content.Server.Construction.Completions
|
||||
|
||||
if (entityManager.TryGetComponent(machine, out MachineComponent? machineComp))
|
||||
{
|
||||
machineComp.RefreshParts();
|
||||
constructionSystem.RefreshParts(machineComp);
|
||||
}
|
||||
|
||||
entityManager.DeleteEntity(uid);
|
||||
|
||||
Reference in New Issue
Block a user