Fix gas cannister slider log spam. (#6628)
This commit is contained in:
@@ -191,12 +191,12 @@ namespace Content.Server.Atmos.Piping.Unary.EntitySystems
|
||||
}
|
||||
}
|
||||
|
||||
DirtyUI(uid, canister, nodeContainer, containerManager);
|
||||
|
||||
// If last pressure is very close to the current pressure, do nothing.
|
||||
if (MathHelper.CloseToPercent(canister.Air.Pressure, canister.LastPressure))
|
||||
return;
|
||||
|
||||
DirtyUI(uid, canister, nodeContainer, containerManager);
|
||||
|
||||
canister.LastPressure = canister.Air.Pressure;
|
||||
|
||||
if (canister.Air.Pressure < 10)
|
||||
|
||||
Reference in New Issue
Block a user