From 09680bbff8f2209b831f1bed0bf99eb664151158 Mon Sep 17 00:00:00 2001 From: cheapie Date: Sun, 29 Jan 2017 20:49:53 -0600 Subject: Fix crash (lines were in the wrong order...) --- trafficlight/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trafficlight/init.lua b/trafficlight/init.lua index 2b2038b..4a1e24d 100644 --- a/trafficlight/init.lua +++ b/trafficlight/init.lua @@ -104,11 +104,11 @@ local function ped_on_flash_end(pos,record) obj:remove() end end + local timer = minetest.get_node_timer(pos) if not record then timer:stop() return end - local timer = minetest.get_node_timer(pos) local meta = minetest.get_meta(pos) local lastflashtime = meta:get_int("lastflashtime") local twoflashesago = meta:get_int("twoflashesago") -- cgit v1.2.3