From e716e79640cc2ebd44759382b3f8c8a7f0963cf7 Mon Sep 17 00:00:00 2001 From: MCLV <107920484+MCLV-pandorabox@users.noreply.github.com> Date: Tue, 17 Dec 2024 18:49:11 +0100 Subject: [PATCH] Fix shared chest failing to open for users with hyphen in their name (#33) --- models/shared.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/shared.lua b/models/shared.lua index 03825bf..b0ff727 100644 --- a/models/shared.lua +++ b/models/shared.lua @@ -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