]> git.lizzy.rs Git - dragonblocks.git/commitdiff
Fix itemstack count display not updating when count is 1
authorElias Fleckenstein <eliasfleckenstein@web.de>
Tue, 29 Jun 2021 23:05:47 +0000 (01:05 +0200)
committerElias Fleckenstein <eliasfleckenstein@web.de>
Tue, 29 Jun 2021 23:05:47 +0000 (01:05 +0200)
engine/item_stack.js

index 2345446bb58cded381acf8c78f03910892895a94..5024bb388ed019cc5c84bef86512c2c54e0cfef6 100644 (file)
@@ -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";