[PortableMirror] Errors during mod initialization
Closed this issue · 2 comments
kafeijao commented
I'm getting some errors during other mods initialization, I was looking for the issue at it seems it happens when OnPreferencesSaved
is called (because another mod saved prefs for example) and PortableMirror's OnApplicationStart
wasn't called yet.
The NullReferenceException is coming from
CVRMods-Nirv/PortableMirror_Combined/Main.cs
Line 249 in c4f50d1
Because distanceDisable
was not initialized yet.
Nirv-git commented
Bah, why must some mods call a global OnPrefSave on init, if they want they can just call their own OnPrefSav method.
Will fix in next version
NotAKidoS commented
heh- all my mods used to save preferences on startup
sdraw chewed me out for that~