-
Notifications
You must be signed in to change notification settings - Fork 42
Description
Bug: Starlight River v0.2.9.2 throws a NullReferenceException when calling SubworldLibrary.Call() during early runtime.
Reproduce: Enable only SubworldLibrary v2.2.3.2 and Starlight River. Create a new world.
Result: [SubworldLibrary]: Call error: Object reference not set to an instance of an object, repeats every frame.
Expected: Mod should check if SubworldManager is initialized before calling.
Suggested Fix: Wrap Call() with a null check or use ModLoader.TryGetMod()
Error begins at line 1172
[20:29:00.018] [Main Thread/WARN] [tML]: Silently Caught Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at SubworldLibrary.SubworldLibrary.Call(Object[] args) in SubworldLibrary.cs:line 1004
at StarlightRiver.Core.Systems.CutawaySystem.CutawayHook.get_InSubworld() in StarlightRiver\Core\Systems\CutawaySystem\CutawayHook.cs:line 22