From c8f2bbd19d6ec2093ecacf9c011f18e50ed66526 Mon Sep 17 00:00:00 2001 From: Luke Date: Mon, 23 Nov 2020 01:04:32 +0100 Subject: [PATCH] Changed enchantment color and offset --- .../draylar/helpfulheldtooltips/mixin/InGameHudMixin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/draylar/helpfulheldtooltips/mixin/InGameHudMixin.java b/src/main/java/draylar/helpfulheldtooltips/mixin/InGameHudMixin.java index f02346b..4861c79 100644 --- a/src/main/java/draylar/helpfulheldtooltips/mixin/InGameHudMixin.java +++ b/src/main/java/draylar/helpfulheldtooltips/mixin/InGameHudMixin.java @@ -113,9 +113,9 @@ public void renderHeldItemTooltip(MatrixStack matrixStack) { Enchantment enchantment = entry.getKey(); Integer level = entry.getValue(); - Text enchantmentText = new TranslatableText(enchantment.getTranslationKey()).append(" ").append(new TranslatableText("potion.potency." + (level - 1))).formatted(Formatting.GRAY); + Text enchantmentText = new TranslatableText(enchantment.getTranslationKey()).append(" ").append(new TranslatableText("potion.potency." + (level - 1))).formatted(Formatting.SILVER); x = (this.scaledWidth - this.getFontRenderer().getWidth(enchantmentText)) / 2; - this.getFontRenderer().drawWithShadow(matrixStack, enchantmentText, (float) x, (float) y + 12 * count, 16777215 + (k << 24)); + this.getFontRenderer().drawWithShadow(matrixStack, enchantmentText, (float) x, (float) y + 10 * count, 16777215 + (k << 24)); count++; }