hotfix to traits
This commit is contained in:
@@ -97,6 +97,14 @@ function DataController:setup(key)
|
||||
-- self.tocData.isInitializing = false
|
||||
-- ModData.add(key, self.tocData)
|
||||
|
||||
|
||||
|
||||
-- FIX THIS THING HERE ISN'T REALLY CORRECT BUT IT'S A WORKAROUND UNTIL WE FIGURE IT OUT
|
||||
-- The issue is that we need to do this once, not every single time we load data.
|
||||
-- Manage their traits
|
||||
local LocalPlayerController = require("TOC/Controller/LocalPlayerController")
|
||||
LocalPlayerController.ManageTraits(getPlayer())
|
||||
|
||||
end
|
||||
|
||||
---In case of desync between the table on ModData and the table here
|
||||
@@ -417,6 +425,8 @@ function DataController.ReceiveData(key, data)
|
||||
|
||||
triggerEvent("OnReceivedTocData", handler.username)
|
||||
|
||||
-- TODO We need an event to track if initialization has been finalized
|
||||
|
||||
|
||||
|
||||
-- if username == getPlayer():getUsername() and not handler.isResetForced then
|
||||
|
||||
Reference in New Issue
Block a user