Air alarm fixes (again, oops) (#7715)
* fixes critical issue * alright, this might be the actual fix * removes useless null checks * couple more * removes default functions from unary device data
This commit is contained in:
@@ -111,8 +111,6 @@ namespace Content.Client.Atmos.Monitor.UI
|
||||
switch (device)
|
||||
{
|
||||
case GasVentPumpData pump:
|
||||
if (!pump.Dirty) pump = GasVentPumpData.Default();
|
||||
|
||||
if (!_pumps.TryGetValue(addr, out var pumpControl))
|
||||
{
|
||||
var control= new PumpControl(pump, addr);
|
||||
@@ -127,8 +125,6 @@ namespace Content.Client.Atmos.Monitor.UI
|
||||
|
||||
break;
|
||||
case GasVentScrubberData scrubber:
|
||||
if (!scrubber.Dirty) scrubber = GasVentScrubberData.Default();
|
||||
|
||||
if (!_scrubbers.TryGetValue(addr, out var scrubberControl))
|
||||
{
|
||||
var control = new ScrubberControl(scrubber, addr);
|
||||
|
||||
Reference in New Issue
Block a user