Remove component.Initialize calls (#18230)
This commit is contained in:
@@ -17,6 +17,7 @@ namespace Content.Server.Power.EntitySystems
|
||||
public sealed class PowerNetSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly AppearanceSystem _appearance = default!;
|
||||
[Dependency] private readonly PowerNetConnectorSystem _powerNetConnector = default!;
|
||||
[Dependency] private readonly IParallelManager _parMan = default!;
|
||||
|
||||
private readonly PowerState _powerState = new();
|
||||
@@ -101,6 +102,7 @@ namespace Content.Server.Power.EntitySystems
|
||||
|
||||
private void PowerConsumerInit(EntityUid uid, PowerConsumerComponent component, ComponentInit args)
|
||||
{
|
||||
_powerNetConnector.BaseNetConnectorInit(component);
|
||||
AllocLoad(component.NetworkLoad);
|
||||
}
|
||||
|
||||
@@ -121,6 +123,7 @@ namespace Content.Server.Power.EntitySystems
|
||||
|
||||
private void PowerSupplierInit(EntityUid uid, PowerSupplierComponent component, ComponentInit args)
|
||||
{
|
||||
_powerNetConnector.BaseNetConnectorInit(component);
|
||||
AllocSupply(component.NetworkSupply);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user