whoops
This commit is contained in:
@@ -16,7 +16,7 @@ namespace Content.Server.Audio
|
||||
|
||||
private void HandlePowerSupply(EntityUid uid, AmbientOnPoweredComponent component, PowerNetBatterySupplyEvent args)
|
||||
{
|
||||
if (!ComponentManager.TryGetComponent<AmbientSoundComponent>(uid, out var ambientSound)) return;
|
||||
if (!EntityManager.TryGetComponent<AmbientSoundComponent>(uid, out var ambientSound)) return;
|
||||
if (ambientSound.Enabled == args.Supply) return;
|
||||
ambientSound.Enabled = args.Supply;
|
||||
ambientSound.Dirty();
|
||||
|
||||
@@ -154,7 +154,7 @@ namespace Content.Server.Power.EntitySystems
|
||||
|
||||
// Setup for events.
|
||||
{
|
||||
foreach (var powerNetBattery in ComponentManager.EntityQuery<PowerNetworkBatteryComponent>())
|
||||
foreach (var powerNetBattery in EntityManager.EntityQuery<PowerNetworkBatteryComponent>())
|
||||
{
|
||||
_lastSupply[powerNetBattery] = powerNetBattery.CurrentSupply;
|
||||
}
|
||||
@@ -218,7 +218,7 @@ namespace Content.Server.Power.EntitySystems
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var powerNetBattery in ComponentManager.EntityQuery<PowerNetworkBatteryComponent>())
|
||||
foreach (var powerNetBattery in EntityManager.EntityQuery<PowerNetworkBatteryComponent>())
|
||||
{
|
||||
if (!_lastSupply.TryGetValue(powerNetBattery, out var lastPowerSupply))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user