Fixes machine using power from the area it was created in, rather than using the area it is in (#23188)

* Update machine area when power_change() is called.

* Do not attempt to unregister from null powernet

* Move to wrench and update wrench_acts

* Remove accidental pseudocode

---------

Co-authored-by: Adrer <adrermail@gmail.com>
This commit is contained in:
Adrer
2023-11-20 14:10:23 -05:00
committed by GitHub
co-authored by Adrer
parent 5ac1cc817d
commit 39005bea2b
17 changed files with 21 additions and 87 deletions
@@ -191,7 +191,7 @@
/obj/machinery/power/teg/wrench_act(mob/user, obj/item/I)
. = TRUE
if(!I.use_tool(src, user, 0, volume = I.tool_volume))
if(!default_unfasten_wrench(user, I, 0))
return
anchored = !anchored
if(!anchored)