Update ImageView.java

isempty missing in streambuffer on android
This commit is contained in:
kevlahnota
2024-11-17 14:26:08 +08:00
committed by GitHub
parent f6d4e322a8
commit c9e733ecbd

View File

@@ -1153,7 +1153,7 @@ public class ImageView<T extends InventoryItem> extends ItemView<T> {
} }
} }
// spire colors // spire colors
if (!colorID.isEmpty()) { if (colorID.length() > 0) {
textRenderer.drawText(g, colorID.toString(), FSkinFont.forHeight(w / 5), Color.WHITE, x, y + h / 4, w, h, y, h, false, Align.center, true); textRenderer.drawText(g, colorID.toString(), FSkinFont.forHeight(w / 5), Color.WHITE, x, y + h / 4, w, h, y, h, false, Align.center, true);
} }
} else if (item instanceof ConquestCommander) { } else if (item instanceof ConquestCommander) {