mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-11-16 15:20:32 +01:00
Update init.lua
This commit is contained in:
parent
0a349e7512
commit
9d246ab25f
|
@ -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 == ""
|
||||
|
|
Loading…
Reference in New Issue
Block a user