[fix] Armor Hud displays armor count when armor slot is empty

This commit is contained in:
Xiaro 2021-01-08 09:25:19 -05:00
parent 3103974f5d
commit 487cffe8e3
No known key found for this signature in database
GPG Key ID: 996D265D6E155377
1 changed files with 2 additions and 0 deletions

View File

@ -116,6 +116,8 @@ object Armor : HudElement(
}
private fun drawItem(itemStack: ItemStack, index: Int, x: Int, y: Int) {
if (itemStack.isEmpty) return
RenderUtils2D.drawItem(itemStack, x, y, drawOverlay = false)
if (armorCount.value) {
val string = armorCounts[index].toString()