Fix crash (lines were in the wrong order...)

master
cheapie 2017-01-29 20:49:53 -06:00
parent 0c270e76ef
commit 09680bbff8
1 changed files with 1 additions and 1 deletions

View File

@ -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")