forked from minetest-mods/mesecons
Finish after() command: works now
This commit is contained in:
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user