ECS construction machines (#6354)

This commit is contained in:
metalgearsloth
2022-02-03 10:04:46 +11:00
committed by GitHub
parent 5091c6aa9d
commit 42102b17c1
4 changed files with 124 additions and 118 deletions

View File

@@ -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);