mirror of
				https://github.com/mt-mods/led_marquee.git
				synced 2025-11-04 01:45:25 +01:00 
			
		
		
		
	add "clear" as more readable an alternate to "off_multi"
This commit is contained in:
		
							
								
								
									
										2
									
								
								init.lua
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								init.lua
									
									
									
									
									
								
							@@ -189,7 +189,7 @@ local on_digiline_receive_string = function(pos, node, channel, msg)
 | 
			
		||||
				minetest.swap_node(pos, { name = "led_marquee:char_144", param2 = fdir + (last_color*8)})
 | 
			
		||||
			elseif msg == "cursor" then
 | 
			
		||||
				minetest.swap_node(pos, { name = "led_marquee:char_31", param2 = fdir + (last_color*8)})
 | 
			
		||||
			elseif msg == "off_multi" then
 | 
			
		||||
			elseif msg == "off_multi" or msg == "clear" then
 | 
			
		||||
				msg = string.rep(" ", 1024)
 | 
			
		||||
				meta:set_string("last_msg", msg)
 | 
			
		||||
				led_marquee.display_msg(pos, channel, msg)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user