Skip to content

Commit

Permalink
fix(RPUI): hunger and status
Browse files Browse the repository at this point in the history
  • Loading branch information
renzuzu committed Aug 12, 2021
1 parent 1d1ebfb commit f561dd0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions renzu_hud/ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,12 @@
<div id="statusbar">
<div class="food-bar">
<span class="bar">
<span class="food_progress" id="hunger"></span>
<span class="food_progress" id="hungerbar"></span>
</span>
</div>
<div class="water-bar">
<span class="bar">
<span class="water_progress" id="thirst"></span>
<span class="water_progress" id="thirstbar"></span>
</span>
</div>
<div class="stress-bar">
Expand Down
4 changes: 3 additions & 1 deletion renzu_hud/ui/js/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -2047,7 +2047,9 @@ function SetNotify(table) {

function SetMetrics(v) {
metrics = v
document.getElementById("speedtext").innerHTML = v;
if (document.getElementById("speedtext")) {
document.getElementById("speedtext").innerHTML = v;
}
}

//FUNCTIONS
Expand Down

0 comments on commit f561dd0

Please sign in to comment.