mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-11-10 12:20:18 +01:00
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 spaces
|
||||||
code = string.gsub(code, " ", "") --Remove all tabs
|
code = string.gsub(code, " ", "") --Remove all tabs
|
||||||
if yc_parsecode(code, pos) == nil then
|
if yc_parsecode(code, pos) == nil then
|
||||||
meta:set_string("infotext", "Code not valid!")
|
meta:set_string("infotext", "Code not valid!\n"..code)
|
||||||
else
|
else
|
||||||
meta:set_string("infotext", "Working Microcontroller")
|
meta:set_string("infotext", "Working Microcontroller\n"..code)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user