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

Ignore exceptions thrown by methods registered with SaveUtils.RegisterOnSaveEvent #549

Open qqqbbb opened 5 months ago

qqqbbb commented 5 months ago

Exceptions thrown by methods registered with SaveUtils.RegisterOnSaveEvent should be ignored. The game won't be saved if this happens.

Tested with Nautilus 1.0.0-pre.31

qqqbbb commented 5 months ago

Why not run those methods in postfix patch for SaveLoadManager.SaveToDeepStorageAsync ?