From 45fa56cb23b36c18a6c681d25bb5a4c562c4c331 Mon Sep 17 00:00:00 2001 From: minjaesong Date: Mon, 28 Jan 2019 19:22:47 +0900 Subject: [PATCH] inventory ui won't always draw item count --- src/net/torvald/terrarum/UIItemInventoryElemSimple.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/torvald/terrarum/UIItemInventoryElemSimple.kt b/src/net/torvald/terrarum/UIItemInventoryElemSimple.kt index 1ab630449..0c1edc5be 100644 --- a/src/net/torvald/terrarum/UIItemInventoryElemSimple.kt +++ b/src/net/torvald/terrarum/UIItemInventoryElemSimple.kt @@ -96,8 +96,8 @@ class UIItemInventoryElemSimple( batch.drawStraightLine(barOffset, posY + height - thickness, barOffset + barFullLen * (item!!.durability / item!!.maxDurability), thickness, false) } } - else { - // draw item count + // draw item count when applicable + else if (item!!.stackable) { val amountString = amount.toString() // highlight item count (blocks/walls) if the item is equipped