mirror of https://github.com/kami-blue/client
[fix] Armor Hud displays armor count when armor slot is empty
This commit is contained in:
parent
3103974f5d
commit
487cffe8e3
|
@ -116,6 +116,8 @@ object Armor : HudElement(
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun drawItem(itemStack: ItemStack, index: Int, x: Int, y: Int) {
|
private fun drawItem(itemStack: ItemStack, index: Int, x: Int, y: Int) {
|
||||||
|
if (itemStack.isEmpty) return
|
||||||
|
|
||||||
RenderUtils2D.drawItem(itemStack, x, y, drawOverlay = false)
|
RenderUtils2D.drawItem(itemStack, x, y, drawOverlay = false)
|
||||||
if (armorCount.value) {
|
if (armorCount.value) {
|
||||||
val string = armorCounts[index].toString()
|
val string = armorCounts[index].toString()
|
||||||
|
|
Loading…
Reference in New Issue