]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix incorrect use of atmos dt (#29112)
authorPartmedia <kevinz5000@gmail.com>
Mon, 17 Jun 2024 01:13:32 +0000 (17:13 -0800)
committerGitHub <noreply@github.com>
Mon, 17 Jun 2024 01:13:32 +0000 (21:13 -0400)
Content.Server/Power/Generation/Teg/TegSystem.cs

index bc1bff052ce419233491fd7a8e0f1cfc6f144c3b..02412ca5fb54b5f59484537c3706147ef44a8c50 100644 (file)
@@ -179,7 +179,7 @@ public sealed class TegSystem : EntitySystem
         component.LastGeneration = electricalEnergy;
 
         // Turn energy (at atmos tick rate) into wattage.
-        var power = electricalEnergy * _atmosphere.AtmosTickRate;
+        var power = electricalEnergy / args.dt;
         // Add ramp factor. This magics slight power into existence, but allows us to ramp up.
         supplier.MaxSupply = power * component.RampFactor;