From 57734d0a9667dfdef1a639f31e2b0bcc1d1657c1 Mon Sep 17 00:00:00 2001 From: HellionGames Date: Sun, 2 Jul 2023 09:50:44 -0400 Subject: [PATCH] Fix texture errors with REI --- .../client/gui/screen/inventory/GemForgeScreen.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/infernalstudios/miningmaster/client/gui/screen/inventory/GemForgeScreen.java b/src/main/java/org/infernalstudios/miningmaster/client/gui/screen/inventory/GemForgeScreen.java index 162794a..eb46e5a 100644 --- a/src/main/java/org/infernalstudios/miningmaster/client/gui/screen/inventory/GemForgeScreen.java +++ b/src/main/java/org/infernalstudios/miningmaster/client/gui/screen/inventory/GemForgeScreen.java @@ -18,7 +18,6 @@ import com.mojang.blaze3d.systems.RenderSystem; import com.mojang.blaze3d.vertex.PoseStack; -import net.minecraft.client.Minecraft; import net.minecraft.client.gui.components.AbstractButton; import net.minecraft.client.gui.components.ImageButton; import net.minecraft.client.gui.narration.NarrationElementOutput; @@ -184,8 +183,9 @@ protected Button(int x, int y, GemForgeScreen screen) { } public void renderButton(PoseStack matrixStack, int mouseX, int mouseY, float partialTicks) { - Minecraft.getInstance().getTextureManager().bindForSetup(GemForgeScreen.GUI_TEXTURE); + RenderSystem.setShader(GameRenderer::getPositionTexShader); RenderSystem.setShaderColor(1.0F, 1.0F, 1.0F, 1.0F); + RenderSystem.setShaderTexture(0, GUI_TEXTURE); int i = 165; int j = 0; if (this.screen.menu.isForgeActive()) {