mirror of
https://github.com/minetest-mods/more_chests.git
synced 2025-01-08 00:10:19 +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") .. " "
|
||||
if name == meta:get_string("owner") then
|
||||
return true
|
||||
elseif shared:find(" " .. name .. " ") then
|
||||
elseif shared:find(" " .. name .. " ", 1, true) then
|
||||
return true
|
||||
else
|
||||
return false
|
||||
|
Loading…
Reference in New Issue
Block a user