Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ba267cb900 | ||
|
|
00d5d83ea2 | ||
|
|
849c17051a |
@@ -8,8 +8,7 @@ local DataController = require("TOC/Controllers/DataController")
|
||||
---@param context ISContextMenu
|
||||
---@param worldobjects table
|
||||
local function AddAdminTocOptions(playerNum, context, worldobjects)
|
||||
|
||||
if (isClient() and not isDebugEnabled()) or isAdmin() then return end
|
||||
if not(isClient() and isAdmin() or isDebugEnabled()) then return end
|
||||
|
||||
local players = {}
|
||||
for _, v in ipairs(worldobjects) do
|
||||
@@ -72,6 +71,8 @@ local function AddAdminTocOptions(playerNum, context, worldobjects)
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
Events.OnFillWorldObjectContextMenu.Add(AddAdminTocOptions)
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ require("TOC/Events")
|
||||
|
||||
---@class Main
|
||||
local Main = {
|
||||
_version = "2.1.4"
|
||||
_version = "2.1.5"
|
||||
}
|
||||
|
||||
function Main.Start()
|
||||
|
||||
Reference in New Issue
Block a user