Skip to content

Commit

Permalink
#30 Don't update ammo count if player is dead
Browse files Browse the repository at this point in the history
  • Loading branch information
Grantapher committed Oct 7, 2023
1 parent a8333be commit eb3d616
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ValheimPlus/UI/HotkeyBar.cs
Expand Up @@ -23,6 +23,8 @@ private static void Postfix(ref HotkeyBar __instance, ref Player player)

private static void DisplayAmmoCountsUnderBowHotbarIcon(HotkeyBar __instance, Player player)
{
if (player == null) return;

GameObject ammoCounter = GameObject.Find(hudObjectName);

// Find the bow in the hotbar
Expand Down

0 comments on commit eb3d616

Please sign in to comment.