inventory ui won't always draw item count

This commit is contained in:
minjaesong
2019-01-28 19:22:47 +09:00
parent bd1c1bff8a
commit 465ed0d7a4

View File

@@ -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