[MIRROR] Fixes nopower disabling RND servers permanently [MDB IGNORE] (#13123)

* Fixes nopower disabling RND servers permanently (#66513)

It was using update_user_power(NO_POWER_USE) to disable power use
while off, but that will actually unregister the power_change signal
(which is what the RND server uses to call this) so, it was
being called once and then never working again because it wasn't
receiving the signal to redo it

* Fixes nopower disabling RND servers permanently

Co-authored-by: Seth Scherer <supernovaa41@gmx.com>
This commit is contained in:
SkyratBot
2022-04-26 09:23:41 +02:00
committed by GitHub
parent 5f972e8433
commit 4f9b9f8c46
+2 -4
View File
@@ -54,17 +54,15 @@
return ..()
/obj/machinery/rnd/server/power_change()
. = ..()
refresh_working()
return
return ..()
/obj/machinery/rnd/server/proc/refresh_working()
if(machine_stat & EMPED || research_disabled || machine_stat & NOPOWER)
working = FALSE
update_use_power(NO_POWER_USE)
else
working = TRUE
update_use_power(ACTIVE_POWER_USE)
update_current_power_usage()
update_appearance()
/obj/machinery/rnd/server/emp_act()