Fix incorrect use of atmos dt (#29112)

This commit is contained in:
Partmedia 2024-06-16 17:13:32 -08:00 committed by GitHub
parent 8a199a882b
commit 388d372ee8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View 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;