mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 14:39:58 +01:00
[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:
co-authored by
Seth Scherer
parent
5f972e8433
commit
4f9b9f8c46
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user