forked from minetest-mods/mesecons
		
	Merge pull request #30 from khonkhortisan/patch-1
Display yC Code in Infotexts
This commit is contained in:
		@@ -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
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user