Perhaps you can add ADDON_LOADED/PLAYER_ENTERING_WORLD event to call your update function.
Your function calls might be triggered so early that they dont return the right value.
Edit: What I mean is that you only register ADDON_LOADED/PLAYER_ENTERING_WORLD and when that fires you register your
other events.
__________________
The cataclysm broke the world ... and the pandas could not fix it!
Last edited by Rilgamon : 07-29-18 at 12:40 PM.
|