@@ -9,7 +9,15 @@ local DataController = require("TOC/Controllers/DataController")
|
|||||||
---@param worldobjects table
|
---@param worldobjects table
|
||||||
local function AddAdminTocOptions(playerNum, context, worldobjects)
|
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 = {}
|
local players = {}
|
||||||
for _, v in ipairs(worldobjects) do
|
for _, v in ipairs(worldobjects) do
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ require("TOC/Events")
|
|||||||
|
|
||||||
---@class Main
|
---@class Main
|
||||||
local Main = {
|
local Main = {
|
||||||
_version = "2.1.4"
|
_version = "2.1.5"
|
||||||
}
|
}
|
||||||
|
|
||||||
function Main.Start()
|
function Main.Start()
|
||||||
|
|||||||
2
mod.info
2
mod.info
@@ -4,5 +4,5 @@ description=You've been bitten. You have only two choices.
|
|||||||
id=TheOnlyCure
|
id=TheOnlyCure
|
||||||
icon=icon.png
|
icon=icon.png
|
||||||
url=https://github.com/ZioPao/The-Only-Cure
|
url=https://github.com/ZioPao/The-Only-Cure
|
||||||
modversion=2.1.4
|
modversion=2.1.5
|
||||||
pzversion=41.65
|
pzversion=41.65
|
||||||
|
|||||||
Reference in New Issue
Block a user