mirror of
				https://github.com/minetest-mods/mesecons.git
				synced 2025-10-31 11:25:22 +01:00 
			
		
		
		
	Update init.lua
This commit is contained in:
		| @@ -31,10 +31,9 @@ local function object_detector_scan(pos) | ||||
| 	if next(objs) == nil then return false end | ||||
|  | ||||
| 	local scanname = minetest.get_meta(pos):get_string("scanname") | ||||
| 	local sep = "," | ||||
| 	local scan_for = {} | ||||
| 	for str in string.gmatch(scanname, "([^"..sep.."]+)") do | ||||
| 		scan_for[str:gsub("%s+", "")] = true | ||||
| 	for _, str in pairs(string.split(scanname:gsub(" ", ""), ",")) do | ||||
| 		scan_for[str] = true | ||||
| 	end | ||||
| 	 | ||||
| 	local every_player = scanname == "" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user