inventory ui won't always draw item count

This commit is contained in:
minjaesong
2019-01-28 19:22:47 +09:00
parent 1ffa71215a
commit 45fa56cb23

View File

@@ -96,8 +96,8 @@ class UIItemInventoryElemSimple(
batch.drawStraightLine(barOffset, posY + height - thickness, barOffset + barFullLen * (item!!.durability / item!!.maxDurability), thickness, false) batch.drawStraightLine(barOffset, posY + height - thickness, barOffset + barFullLen * (item!!.durability / item!!.maxDurability), thickness, false)
} }
} }
else { // draw item count when applicable
// draw item count else if (item!!.stackable) {
val amountString = amount.toString() val amountString = amount.toString()
// highlight item count (blocks/walls) if the item is equipped // highlight item count (blocks/walls) if the item is equipped