]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Don't error on missing component in ChangeHeat (#32451)
authorslarticodefast <161409025+slarticodefast@users.noreply.github.com>
Sat, 12 Oct 2024 18:52:05 +0000 (20:52 +0200)
committerGitHub <noreply@github.com>
Sat, 12 Oct 2024 18:52:05 +0000 (11:52 -0700)
Content.Server/Temperature/Systems/TemperatureSystem.cs

index ccd981bbbc32c4399964526efe963984803e68c5..e46b18a265991ca7abf5db64ed9a071612c220ab 100644 (file)
@@ -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<ChangeTemperatureOnCollideComponent> 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,