small update

This commit is contained in:
SweetSea-ButImNotSweet
2024-01-03 16:11:39 +07:00
parent b3ca43fa69
commit 77232885b6

View File

@@ -201,11 +201,11 @@ local function _loadGameEnv(P)-- Load gameEnv
end
if ENV.allowMod then
if GAME.modPatch then
GAME.modCodeList={}
if not GAME.modCodeList then GAME.modCodeList={} end
if not GAME.modCodeList[P.id] then GAME.modCodeList[P.id]={} end
for i=1,#GAME.mod do
if GAME.mod[i]>0 then
local M=MODOPT[i]
if not GAME.modCodeList[P.id] then GAME.modCodeList[P.id]={} end
table.insert(GAME.modCodeList[P.id], function() M.func(P,M.list and M.list[GAME.mod[i]],true) end)
end
end
@@ -518,4 +518,4 @@ function PLY.newPlayer(id,mini,p)
_applyGameEnv(P)
end
--------------------------</Public>--------------------------
return PLY
return PLY