From 849c17051ae98773a0060d952d06eca33e8f1812 Mon Sep 17 00:00:00 2001 From: ZioPao Date: Tue, 22 Oct 2024 00:10:40 +0200 Subject: [PATCH] Fixed broken checks for admin menu --- media/lua/client/TOC/Admin.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/media/lua/client/TOC/Admin.lua b/media/lua/client/TOC/Admin.lua index 1e0390d..9e11ea9 100644 --- a/media/lua/client/TOC/Admin.lua +++ b/media/lua/client/TOC/Admin.lua @@ -9,7 +9,15 @@ local DataController = require("TOC/Controllers/DataController") ---@param worldobjects table local function AddAdminTocOptions(playerNum, context, worldobjects) - if (isClient() and not isDebugEnabled()) or isAdmin() then return end + -- SP Check + if not isDebugEnabled() then return end + --TOC_DEBUG.print("Debug enabled") + + -- MP check + if isClient() and not isAdmin() then return end + --TOC_DEBUG.print("MP and Admin") + + local players = {} for _, v in ipairs(worldobjects) do