forked from minetest-mods/mesecons
oops, that last commit broke something - evidently 'code' is not consistent.
This restores the previous behavior when code=nil, and shows the code when not.
This commit is contained in:
parent
1d29037d8b
commit
34737f62e9
@ -426,7 +426,11 @@ function yc_command_after_execute(params)
|
|||||||
if yc_parsecode(params.code, params.pos) == nil then
|
if yc_parsecode(params.code, params.pos) == nil then
|
||||||
meta:set_string("infotext", "Code in after() not valid!")
|
meta:set_string("infotext", "Code in after() not valid!")
|
||||||
else
|
else
|
||||||
meta:set_string("infotext", "Working Microcontroller\n"..code)
|
if code ~= nil then
|
||||||
|
meta:set_string("infotext", "Working Microcontroller\n"..code)
|
||||||
|
else
|
||||||
|
meta:set_string("infotext", "Working Microcontroller")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user