mirror of
https://github.com/minetest-mods/more_chests.git
synced 2025-01-09 00:40:17 +01:00
Fix shared chest failing to open for users with hyphen in their name (#33)
This commit is contained in:
parent
cc52a10811
commit
e716e79640
@ -25,7 +25,7 @@ local function check_privs(meta, player)
|
|||||||
local shared = " " .. meta:get_string("shared") .. " "
|
local shared = " " .. meta:get_string("shared") .. " "
|
||||||
if name == meta:get_string("owner") then
|
if name == meta:get_string("owner") then
|
||||||
return true
|
return true
|
||||||
elseif shared:find(" " .. name .. " ") then
|
elseif shared:find(" " .. name .. " ", 1, true) then
|
||||||
return true
|
return true
|
||||||
else
|
else
|
||||||
return false
|
return false
|
||||||
|
Loading…
Reference in New Issue
Block a user