SubnauticaModding / Nautilus

Nautilus, the Subnautica Modding API (formerly SMLHelper)
https://subnauticamodding.github.io/Nautilus/
GNU General Public License v3.0
69 stars 37 forks source link

FinishLoadingEvent fires too early for BZ #540

Closed qqqbbb closed 5 months ago

qqqbbb commented 6 months ago

FinishLoadingEvent fires too early for BZ

Steps to reproduce the behavior:

  1. Write a method that uses KnownTech.Add
  2. Register the method with SaveUtils.RegisterOnFinishLoadingEvent
  3. The method will run before the game loads and you will get NullReferenceException

Nautilus BZ v1.0.0-pre.29