mirror of
https://github.com/minetest-mods/mesecons.git
synced 2025-07-01 15:20:23 +02:00
Update init.lua
This commit is contained in:
@ -32,7 +32,10 @@ local function object_detector_scan(pos)
|
|||||||
|
|
||||||
local scanname = minetest.get_meta(pos):get_string("scanname")
|
local scanname = minetest.get_meta(pos):get_string("scanname")
|
||||||
local sep = ","
|
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 == ""
|
local every_player = scanname == ""
|
||||||
for _, obj in pairs(objs) do
|
for _, obj in pairs(objs) do
|
||||||
|
Reference in New Issue
Block a user