This commit is contained in:
lukasabbe
2026-01-20 21:51:37 +01:00
parent cf0043f7d9
commit bf252c9eb9
2 changed files with 2 additions and 2 deletions
@@ -55,7 +55,7 @@ public class HudRenderer {
drawScaledText(context, itemName, x,y+((int)(10*scaleFactor)), color, client.font);
// Item count
if (itemStack.isStackable()) {
if (itemStack.isStackable() && itemStack.getCount() > 1) {
float rightEdge = x + (client.font.width(itemName) / 2f) * scaleFactor;
float spacing = 9 * scaleFactor;
int nextX = (int) (rightEdge + spacing);