mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-11-14 14:20:33 +01:00
Update mesecons_detector/init.lua
This commit is contained in:
parent
0a07ef60bd
commit
872cbfac83
|
@ -7,7 +7,7 @@ local GET_COMMAND = "GET"
|
|||
|
||||
local function comma_list_to_table(comma_list)
|
||||
local tbl = {}
|
||||
for _, str in pairs(string.split(comma_list:gsub(" ", ""), ",")) do
|
||||
for _, str in ipairs(string.split(comma_list:gsub("%s", ""), ",")) do
|
||||
tbl[str] = true
|
||||
end
|
||||
return tbl
|
||||
|
|
Loading…
Reference in New Issue
Block a user