CompFactory updates (#37559)
This commit is contained in:
@@ -13,7 +13,6 @@ namespace Content.Server.Construction;
|
||||
|
||||
public sealed class MachineFrameSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly IComponentFactory _factory = default!;
|
||||
[Dependency] private readonly SharedContainerSystem _container = default!;
|
||||
[Dependency] private readonly TagSystem _tag = default!;
|
||||
[Dependency] private readonly StackSystem _stack = default!;
|
||||
@@ -75,7 +74,7 @@ public sealed class MachineFrameSystem : EntitySystem
|
||||
if (component.ComponentProgress[compName] >= info.Amount)
|
||||
continue;
|
||||
|
||||
var registration = _factory.GetRegistration(compName);
|
||||
var registration = Factory.GetRegistration(compName);
|
||||
|
||||
if (!HasComp(args.Used, registration.Type))
|
||||
continue;
|
||||
@@ -294,7 +293,7 @@ public sealed class MachineFrameSystem : EntitySystem
|
||||
// I have many regrets.
|
||||
foreach (var (compName, _) in component.ComponentRequirements)
|
||||
{
|
||||
var registration = _factory.GetRegistration(compName);
|
||||
var registration = Factory.GetRegistration(compName);
|
||||
|
||||
if (!HasComp(part, registration.Type))
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user