mirror of
https://github.com/minetest-mods/mesecons.git
synced 2025-06-30 23:00:22 +02: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
|
if next(objs) == nil then return false end
|
||||||
|
|
||||||
local scanname = minetest.get_meta(pos):get_string("scanname")
|
local scanname = minetest.get_meta(pos):get_string("scanname")
|
||||||
local sep = ","
|
|
||||||
local scan_for = {}
|
local scan_for = {}
|
||||||
for str in string.gmatch(scanname, "([^"..sep.."]+)") do
|
for _, str in pairs(string.split(scanname:gsub(" ", ""), ",")) do
|
||||||
scan_for[str:gsub("%s+", "")] = true
|
scan_for[str] = true
|
||||||
end
|
end
|
||||||
|
|
||||||
local every_player = scanname == ""
|
local every_player = scanname == ""
|
||||||
|
Reference in New Issue
Block a user