fixes the bug where a space heater would not work after being turned off and on again. Peculiar, because IRL this usually makes everything work

This commit is contained in:
Phantastic-Swan
2025-08-06 16:05:57 +02:00
parent e59be5e480
commit fcfcd148ee
+4 -2
View File
@@ -71,7 +71,7 @@
if(!on || !is_operational())
if (on) // If it's broken, turn it off too
on = FALSE
return PROCESS_KILL
return
if(cell && cell.charge > 1 / efficiency)
var/turf/L = loc
@@ -85,7 +85,7 @@
else
on = FALSE
update_icon()
return PROCESS_KILL
return
/obj/machinery/space_heater/proc/PerformHeating(turf/L)
if(!istype(L))
@@ -223,6 +223,8 @@
update_icon()
if (on)
SSair.start_processing_machine(src)
else
SSair.stop_processing_machine(src)
. = TRUE
if("mode")
setMode = params["mode"]