Don't update solar panels while the map is paused

Fixes integration tests.
This commit is contained in:
Vera Aguilera Puerto
2021-10-18 13:14:37 +02:00
parent 1b9f28200f
commit 1b84ee05ae

View File

@@ -86,7 +86,7 @@ namespace Content.Server.Solar.EntitySystems
TotalPanelPower = 0;
foreach (var panel in EntityManager.EntityQuery<SolarPanelComponent>(true))
foreach (var panel in EntityManager.EntityQuery<SolarPanelComponent>(false))
{
// There's supposed to be rotational logic here, but that implies putting it somewhere.
panel.Owner.Transform.WorldRotation = TargetPanelRotation;