replace harmony with a custom one that includes __params, some fixes in the lua setup and hook method is now actually useful

This commit is contained in:
Evil Factory
2021-11-05 20:40:50 -03:00
parent a8a0c96d57
commit 72fff4ab73
12 changed files with 115 additions and 19 deletions
+6 -3
View File
@@ -1,15 +1,18 @@
-- Config
local runDisabledMods = false
local modulePaths = {"Lua/?.lua"}
setmodulepaths(modulePaths)
-- Setup Libraries
local defaultLib = require("DefaultLib")
for key, value in pairs(defaultLib) do
_G[key] = value
end
-- Execute Mods
if SERVER and Game.IsDedicated then
runDisabledMods = true
@@ -17,9 +20,9 @@ if SERVER and Game.IsDedicated then
end
if runDisabledMods then
print("LUA LOADER: Mods will be executed regardless being enabled or not. Lua/MoonsharpSetup.lua")
print("LUA LOADER: Mods will be executed regardless being enabled or not. Lua/LuaSetup.lua")
else
print("LUA LOADER: Only enabled mods will be executed. Lua/MoonsharpSetup.lua")
print("LUA LOADER: Only enabled mods will be executed. Lua/LuaSetup.lua")
end
local enabledPackages = Game.GetEnabledContentPackages()