From ed6fae603e27e600f8a2c11d6bae4842b43bc796 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Mon, 26 Mar 2018 15:24:17 -0400 Subject: [PATCH 1/2] Merge pull request #36671 from YPOQ/areachangepowerfix Fixes machines not updating power when changing areas --- code/game/machinery/_machinery.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/code/game/machinery/_machinery.dm b/code/game/machinery/_machinery.dm index 7b31c502e4..a3b65dad14 100644 --- a/code/game/machinery/_machinery.dm +++ b/code/game/machinery/_machinery.dm @@ -127,6 +127,7 @@ Class Procs: else START_PROCESSING(SSfastprocess, src) power_change() + AddComponent(/datum/component/redirect, list(COMSIG_ENTER_AREA), CALLBACK(src, .proc/power_change)) if (occupant_typecache) occupant_typecache = typecacheof(occupant_typecache)