From 04bb0a172079ec6d3f6a2372b6c5aaa40d7375c7 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Wed, 30 Jun 2021 01:05:47 +0200 Subject: [PATCH] Fix itemstack count display not updating when count is 1 --- engine/item_stack.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/item_stack.js b/engine/item_stack.js index 2345446..5024bb3 100644 --- a/engine/item_stack.js +++ b/engine/item_stack.js @@ -230,6 +230,8 @@ dragonblocks.ItemStack = class extends EventTarget if (this.count > 1) countDisplay.innerHTML = this.count; + else + countDisplay.innerHTML = ""; } else { display.title = ""; display.style.background = "none"; -- 2.44.0