From: slarticodefast <161409025+slarticodefast@users.noreply.github.com> Date: Sat, 12 Oct 2024 18:52:05 +0000 (+0200) Subject: Don't error on missing component in ChangeHeat (#32451) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=d6d8c55d5790a083eb8ecdcfc5828cdb6bd193d5;p=space-station-14.git Don't error on missing component in ChangeHeat (#32451) --- 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,