[BUG] Dying with ammo count causes log to fill with errors
Closed this issue · 4 comments
Grantapher commented
- OS: ?
- Valheim Game Version: 0.217.24
- V+ Mod Version: 0.9.10.0
Describe the bug
Dying with displayBowAmmoCounts = 1
and a bow equipped causes many error logs in console.
[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object
Stack trace:
ValheimPlus.UI.HotkeyBar_UpdateIcons_Patch.DisplayAmmoCountsUnderBowHotbarIcon (HotkeyBar __instance, Player player) (at <6488f67f67354da78e129795dfd79295>:0)
ValheimPlus.UI.HotkeyBar_UpdateIcons_Patch.Postfix (HotkeyBar& __instance, Player& player) (at <6488f67f67354da78e129795dfd79295>:0)
(wrapper dynamic-method) HotkeyBar.DMD<HotkeyBar::UpdateIcons>(HotkeyBar,Player)
HotkeyBar.Update () (at <885fde5117a141d19eed8c0292c3d1fd>:0)
Grantapher commented
Occurs only during the loading screen after dying while it is loading the spawn point. Also reproducible with displayBowAmmoCounts = 2
with no bow equipped.
[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object
Stack trace:
ValheimPlus.UI.HotkeyBar_UpdateIcons_Patch.DisplayAmmoCountsUnderBowHotbarIcon (HotkeyBar __instance, Player player) (at C:/Users/Grant/Workspace/ValheimPlus/ValheimPlus/UI/HotkeyBar.cs:34)
ValheimPlus.UI.HotkeyBar_UpdateIcons_Patch.Postfix (HotkeyBar& __instance, Player& player) (at C:/Users/Grant/Workspace/ValheimPlus/ValheimPlus/UI/HotkeyBar.cs:21)
(wrapper dynamic-method) HotkeyBar.DMD<HotkeyBar::UpdateIcons>(HotkeyBar,Player)
HotkeyBar.Update () (at <885fde5117a141d19eed8c0292c3d1fd>:0)
Grantapher commented
Released into 0.9.10.1-alpha01.
Grantapher commented
More sources of errors released into 0.9.10.1-alpha02.
Grantapher commented
Released into 0.9.11.0
.