From 22c9a6b8cd02408f3c3851292a0ac193abfd3f42 Mon Sep 17 00:00:00 2001 From: jani270 <69345714+jani270@users.noreply.github.com> Date: Wed, 12 Jun 2024 13:11:56 +0200 Subject: Fix crafting text being too small when the text is long (#1209) --- .../github/moulberry/notenoughupdates/recipes/CraftingRecipe.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/io/github/moulberry/notenoughupdates/recipes/CraftingRecipe.java b/src/main/java/io/github/moulberry/notenoughupdates/recipes/CraftingRecipe.java index 8e4623e3..c0729634 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/recipes/CraftingRecipe.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/recipes/CraftingRecipe.java @@ -37,8 +37,8 @@ public class CraftingRecipe implements NeuRecipe { public static final ResourceLocation BACKGROUND = new ResourceLocation("notenoughupdates", "textures/gui/crafting_table_tall.png"); - private static final int EXTRA_STRING_X = 132; - private static final int EXTRA_STRING_Y = 50; + private static final int EXTRA_STRING_X = 90; + private static final int EXTRA_STRING_Y = 35; private final NEUManager manager; private final Ingredient[] inputs; @@ -116,7 +116,7 @@ public class CraftingRecipe implements NeuRecipe { String craftingText = getCraftText(); if (craftingText != null) Utils.drawStringCenteredScaledMaxWidth(craftingText, - gui.guiLeft + EXTRA_STRING_X, gui.guiTop + EXTRA_STRING_Y, false, 75, 0x404040 + gui.guiLeft + EXTRA_STRING_X, gui.guiTop + EXTRA_STRING_Y, false, 85, 0x404040 ); } -- cgit