## Bug fixes

- Fixed held item persistence breaking dream world entry via death
(oops)
This commit is contained in:
xen-42 2024-10-13 23:38:53 -04:00 committed by GitHub
commit 6c18e9635a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -49,11 +49,11 @@ public static class HeldItemHandler
_isInitialized = true;
Main.Instance.OnChangeStarSystem.AddListener(OnStarSystemChanging);
Main.Instance.OnStarSystemLoaded.AddListener(OnSystemReady);
GlobalMessenger<DeathType>.AddListener("PlayerDeath", OnPlayerDeath);
GlobalMessenger.AddListener("DeathSequenceComplete", OnDeathSequenceComplete);
}
}
private static void OnPlayerDeath(DeathType _)
private static void OnDeathSequenceComplete()
{
NHLogger.Log("Player died, resetting held items");

View File

@ -4,7 +4,7 @@
"author": "xen, Bwc9876, JohnCorby, MegaPiggy, Trifid, and friends",
"name": "New Horizons",
"uniqueName": "xen.NewHorizons",
"version": "1.23.3",
"version": "1.23.4",
"owmlVersion": "2.12.1",
"dependencies": [ "JohnCorby.VanillaFix", "xen.CommonCameraUtility", "dgarro.CustomShipLogModes" ],
"conflicts": [ "PacificEngine.OW_CommonResources" ],