Update init.lua

This commit is contained in:
Josh Mars
2017-03-18 09:44:04 -04:00
committed by GitHub
parent aff4b59d3c
commit dccb2c6787

View File

@ -32,7 +32,10 @@ local function object_detector_scan(pos)
local scanname = minetest.get_meta(pos):get_string("scanname")
local sep = ","
local scan_for = string.split(scanname, sep)
local scan_for = {}
for str in string.gmatch(scanname, "([^"..sep.."]+)") do
scan_for[str:gsub("%s+", "")] = true
end
local every_player = scanname == ""
for _, obj in pairs(objs) do