mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
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:
commit
b524e2b71c
@ -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");
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user