Skip to content

Commit

Permalink
fix stinger battery causing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
malicean committed Dec 18, 2022
1 parent cbbcb25 commit 696d89d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/Wristimate/Behaviour.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,16 @@ private void Update()
_popup.gameObject.SetActive(false);
return;
}

_popup.gameObject.SetActive(true);

var mag = data.Value.Magazine;
if (mag.m_capacity == 0)
{
_popup.gameObject.SetActive(false);
return;
}

{
var mag = data.Value.Magazine;
_popup.gameObject.SetActive(true);
var wrist = data.Value.Wrist;

// This is supposed to be [0, 1], not [0, 100]
Expand Down

0 comments on commit 696d89d

Please sign in to comment.