Skip to content

Commit

Permalink
[MIRROR] Allows machines inside an obj to actually be able to get power
Browse files Browse the repository at this point in the history
  • Loading branch information
Merlin1230 authored and SuhEugene committed Sep 14, 2023
1 parent fec69c4 commit 2ae3623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/game/machinery/_machines_base/machinery_power.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2ae3623

Please sign in to comment.