mirror of
https://github.com/DarkflameUniverse/NexusDashboard.git
synced 2025-08-06 10:44:00 +00:00
add sanity checks for inventory to stop crashing
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
data-placement="left"
|
||||
title="{% include 'partials/charxml/_item_tooltip.html.j2' %}"
|
||||
>
|
||||
{% if inv_item.attr_c != "1" %}
|
||||
{% if 'attr_c' in inv_item %}
|
||||
<span class="inventory-count text-bold">
|
||||
{%if inv_item.attr_c|int > 999 %}
|
||||
+999
|
||||
|
@@ -66,7 +66,8 @@
|
||||
{% endwith %}
|
||||
{% endif %}
|
||||
|
||||
{%if inv_item.attr_c|int > 999 %}
|
||||
<br />Count: {{ inv_item.attr_c|numberFormat }}
|
||||
{% if 'attr_c' in inv_item %}
|
||||
{%if inv_item.attr_c|int > 999 %}
|
||||
<br />Count: {{ inv_item.attr_c|numberFormat }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
|
Reference in New Issue
Block a user