From 536b284a220bbdae8afabf434cfe5d1eda307545 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Thu, 2 Nov 2023 16:02:58 +0800 Subject: [PATCH] Fix #1431 --- .../me/shedaniel/rei/impl/client/gui/RecipeDisplayExporter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/RecipeDisplayExporter.java b/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/RecipeDisplayExporter.java index 3465598ab..a656c93d9 100644 --- a/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/RecipeDisplayExporter.java +++ b/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/RecipeDisplayExporter.java @@ -83,7 +83,7 @@ private static void exportRecipe(Rectangle rectangle, DisplaySpec display, List< RenderTarget renderTarget = new TextureTarget(window.getWidth(), window.getHeight(), true, false); renderTarget.bindWrite(true); RenderSystem.clear(256, Minecraft.ON_OSX); - Matrix4f matrix4f = new Matrix4f().setOrtho(0.0F, (float) ((double) window.getWidth() / window.getGuiScale()), 0.0F, (float) ((double) window.getHeight() / window.getGuiScale()), 1000.0F, 3000.0F); + Matrix4f matrix4f = new Matrix4f().setOrtho(0.0F, (float) ((double) window.getWidth() / window.getGuiScale()), (float) ((double) window.getHeight() / window.getGuiScale()), 0.0F, 1000.0F, 3000.0F); RenderSystem.setProjectionMatrix(matrix4f); PoseStack poseStack = RenderSystem.getModelViewStack(); poseStack.pushPose();