Partial atmos refactor (#22521)
* Reduce atmos component queries * Remove method events * Cache airtight data * Make MolesArchived nullable * Fix airtight cache * only get tile def once * Immutable mixtures * firelock queries * misc * misc cleanup * Trim disconnected tiles * Fix merge issues and bugs * Why does the PR keep increasing in scope * debug overlay * Fix bugs * Fix test, remove unused events * Add setmapatmos command * Fix overlays * Add map check * A * Resolve conflicts with #26102 * Remove some obsolete methods
This commit is contained in:
@@ -37,7 +37,7 @@ public sealed class GasPowerReceiverSystem : EntitySystem
|
||||
if (pipe.Air.Temperature <= component.MaxTemperature)
|
||||
{
|
||||
// we have enough gas, so we consume it and are powered
|
||||
if (pipe.Air.Moles[(int) component.TargetGas] > component.MolesConsumedSec * timeDelta)
|
||||
if (pipe.Air[(int) component.TargetGas] > component.MolesConsumedSec * timeDelta)
|
||||
{
|
||||
pipe.Air.AdjustMoles(component.TargetGas, -component.MolesConsumedSec * timeDelta);
|
||||
SetPowered(uid, component, true);
|
||||
|
||||
Reference in New Issue
Block a user