From 075eac351342850592736b40f8015507dd676013 Mon Sep 17 00:00:00 2001 From: ZhuRuoLing Date: Thu, 26 Sep 2024 18:23:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E4=BD=93=E4=BD=8D=E7=BD=AE=E5=BE=AE?= =?UTF-8?q?=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jei/category/multiblock/MultiBlockCraftingCategory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dev/dubhe/anvilcraft/integration/jei/category/multiblock/MultiBlockCraftingCategory.java b/src/main/java/dev/dubhe/anvilcraft/integration/jei/category/multiblock/MultiBlockCraftingCategory.java index 3e7f5f133..775231f70 100644 --- a/src/main/java/dev/dubhe/anvilcraft/integration/jei/category/multiblock/MultiBlockCraftingCategory.java +++ b/src/main/java/dev/dubhe/anvilcraft/integration/jei/category/multiblock/MultiBlockCraftingCategory.java @@ -259,7 +259,7 @@ public void draw( } pose.pushPose(); pose.scale(0.8f, 0.8f, 0.8f); - int textX = renderAllLayers ? 115 : 100; + int textX = Math.round((float) (WIDTH - minecraft.font.width(component)) / 0.8f); guiGraphics.drawString(minecraft.font, component, textX, 0, 0xf0f0f0, true); pose.popPose(); arrowOut.draw(guiGraphics, 110, 60);