Track LocalMods as part of monolith
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
local SRC_NAMESPACE = "ConsentRequiredExtended."
|
||||
local MAIN = "Main"
|
||||
local LUA_EVENT_LOADED = "loaded"
|
||||
local HOOK_NAME_ON_LOADED = "ConsentRequiredExtended.onLoaded"
|
||||
|
||||
if Game.IsMultiplayer and CLIENT then return end
|
||||
|
||||
local function onLoaded()
|
||||
-- Only run client side if not multiplayer
|
||||
---@diagnostic disable-next-line: undefined-global
|
||||
-- if Game.IsMultiplayer and CLIENT then return end
|
||||
|
||||
local requireStr = SRC_NAMESPACE .. MAIN
|
||||
|
||||
require(requireStr)
|
||||
end
|
||||
|
||||
Hook.Add(LUA_EVENT_LOADED, HOOK_NAME_ON_LOADED, onLoaded)
|
||||
Reference in New Issue
Block a user