Finish after() command: works now

This commit is contained in:
Jeija 2012-08-13 23:20:29 +02:00
parent 5ede8f370c
commit 67dfa93c2e

@ -407,7 +407,11 @@ end
function yc_command_after_execute(params)
local meta = minetest.env:get_meta(params.pos)
if meta:get_int("afterid") == params.afterid then --make sure the node has not been changed
yc_parsecode(params.code, params.pos)
if yc_parsecode(params.code, params.pos) == nil then
meta:set_string("infotext", "Code in after() not valid!")
else
meta:set_string("infotext", "Working Microcontroller")
end
end
end