forked from Mirrorlandia_minetest/mesecons
Merge pull request #30 from khonkhortisan/patch-1
Display yC Code in Infotexts
This commit is contained in:
commit
86a588e3ed
@ -142,9 +142,9 @@ function update_yc(pos)
|
||||
code = string.gsub(code, " ", "") --Remove all spaces
|
||||
code = string.gsub(code, " ", "") --Remove all tabs
|
||||
if yc_parsecode(code, pos) == nil then
|
||||
meta:set_string("infotext", "Code not valid!")
|
||||
meta:set_string("infotext", "Code not valid!\n"..code)
|
||||
else
|
||||
meta:set_string("infotext", "Working Microcontroller")
|
||||
meta:set_string("infotext", "Working Microcontroller\n"..code)
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user