summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2017-01-29 20:49:53 -0600
committercheapie <no-email-for-you@example.com>2017-01-29 20:49:53 -0600
commit09680bbff8f2209b831f1bed0bf99eb664151158 (patch)
tree4f003a5bab8ba4c9842d422fb868c5666ebbd4b5
parent0c270e76ef248202bd5edfdd1de2b7c4a83b7a1d (diff)
downloadroads-09680bbff8f2209b831f1bed0bf99eb664151158.tar
roads-09680bbff8f2209b831f1bed0bf99eb664151158.tar.gz
roads-09680bbff8f2209b831f1bed0bf99eb664151158.tar.bz2
roads-09680bbff8f2209b831f1bed0bf99eb664151158.tar.xz
roads-09680bbff8f2209b831f1bed0bf99eb664151158.zip
Fix crash (lines were in the wrong order...)
-rw-r--r--trafficlight/init.lua2
1 files changed, 1 insertions, 1 deletions
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")