Fix held item persistence breaking dream world entry via death (#970)

## Bug fixes
- Fix being unable to enter the dream world via dying
This commit is contained in:
xen-42 2024-10-13 23:33:06 -04:00 committed by GitHub
commit b524e2b71c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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");