From 2ae3623fdce5f5aa30dea07177b4ff113a80a19b Mon Sep 17 00:00:00 2001 From: Merlin1230 <76177064+Merlin1230@users.noreply.github.com> Date: Fri, 15 Sep 2023 00:28:24 +0300 Subject: [PATCH] [MIRROR] Allows machines inside an obj to actually be able to get power --- code/game/machinery/_machines_base/machinery_power.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/machinery/_machines_base/machinery_power.dm b/code/game/machinery/_machines_base/machinery_power.dm index ae87d38893d56..f2bfabf91b130 100644 --- a/code/game/machinery/_machines_base/machinery_power.dm +++ b/code/game/machinery/_machines_base/machinery_power.dm @@ -23,7 +23,7 @@ This is /obj/machinery level code to properly manage power usage from the area. // return 1 if(!check_area) - check_area = loc.loc // make sure it's in an area + check_area = get_area(src) // make sure it's in an area if(!check_area || !isarea(check_area)) return FALSE // if not, then not powered if(chan == POWER_CHAN)