From d6d8c55d5790a083eb8ecdcfc5828cdb6bd193d5 Mon Sep 17 00:00:00 2001 From: slarticodefast <161409025+slarticodefast@users.noreply.github.com> Date: Sat, 12 Oct 2024 20:52:05 +0200 Subject: [PATCH] Don't error on missing component in ChangeHeat (#32451) --- Content.Server/Temperature/Systems/TemperatureSystem.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Server/Temperature/Systems/TemperatureSystem.cs b/Content.Server/Temperature/Systems/TemperatureSystem.cs index ccd981bbbc..e46b18a265 100644 --- a/Content.Server/Temperature/Systems/TemperatureSystem.cs +++ b/Content.Server/Temperature/Systems/TemperatureSystem.cs @@ -130,7 +130,7 @@ public sealed class TemperatureSystem : EntitySystem public void ChangeHeat(EntityUid uid, float heatAmount, bool ignoreHeatResistance = false, TemperatureComponent? temperature = null) { - if (!Resolve(uid, ref temperature)) + if (!Resolve(uid, ref temperature, false)) return; if (!ignoreHeatResistance) @@ -311,7 +311,7 @@ public sealed class TemperatureSystem : EntitySystem private void ChangeTemperatureOnCollide(Entity ent, ref ProjectileHitEvent args) { - _temperature.ChangeHeat(args.Target, ent.Comp.Heat, ent.Comp.IgnoreHeatResistance);// adjust the temperature + _temperature.ChangeHeat(args.Target, ent.Comp.Heat, ent.Comp.IgnoreHeatResistance);// adjust the temperature } private void OnParentChange(EntityUid uid, TemperatureComponent component,