mirror of
				https://github.com/minetest-mods/mesecons.git
				synced 2025-11-04 04:55:26 +01:00 
			
		
		
		
	Detector: Ignore unexpected digiline data types
This commit is contained in:
		@@ -66,7 +66,8 @@ local object_detector_digiline = {
 | 
			
		||||
	effector = {
 | 
			
		||||
		action = function(pos, _, channel, msg)
 | 
			
		||||
			local meta = minetest.get_meta(pos)
 | 
			
		||||
			if channel == meta:get_string("digiline_channel") then
 | 
			
		||||
			if channel == meta:get_string("digiline_channel") and
 | 
			
		||||
					(type(msg) == "string" or type(msg) == "number") then
 | 
			
		||||
				meta:set_string("scanname", msg)
 | 
			
		||||
				object_detector_make_formspec(pos)
 | 
			
		||||
			end
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user