Reworked some stuff for MP

This commit is contained in:
ZioPao
2023-11-12 22:20:46 +01:00
parent f973b774a2
commit 4887699892
13 changed files with 209 additions and 91 deletions

View File

@@ -40,10 +40,17 @@ function Main.Start()
Main.SetupTraits()
-- Starts initialization for local client
Events.OnCreatePlayer.Add(PlayerHandler.InitializePlayer)
Events.OnGameStart.Add(Main.Initialize)
end
function Main.Initialize()
local pl = getPlayer()
PlayerHandler.InitializePlayer(pl, false)
end
--* Events *--
Events.OnGameBoot.Add(Main.Start)