aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadeleaan <70163122+Madeleaan@users.noreply.github.com>2024-07-25 09:53:17 +0200
committerGitHub <noreply@github.com>2024-07-25 09:53:17 +0200
commit2cf41ed3596f2ea2812b75b2feb12cb8b058aad9 (patch)
treef03f7b15af12b940e4e0afca12d44f3833e60d8d
parent4c3867277ca007f290e87d2d17fb3d3a97d98854 (diff)
downloadnotenoughupdates-2cf41ed3596f2ea2812b75b2feb12cb8b058aad9.tar.gz
notenoughupdates-2cf41ed3596f2ea2812b75b2feb12cb8b058aad9.tar.bz2
notenoughupdates-2cf41ed3596f2ea2812b75b2feb12cb8b058aad9.zip
Fix page arrows being the wrong colour (#1270)
fix arrows being colored in funny ways
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/core/util/ArrowPagesUtils.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/core/util/ArrowPagesUtils.java b/src/main/java/io/github/moulberry/notenoughupdates/core/util/ArrowPagesUtils.java
index a6a61b34..c85f2202 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/core/util/ArrowPagesUtils.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/core/util/ArrowPagesUtils.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2022 NotEnoughUpdates contributors
+ * Copyright (C) 2022-2024 NotEnoughUpdates contributors
*
* This file is part of NotEnoughUpdates.
*
@@ -22,6 +22,7 @@ package io.github.moulberry.notenoughupdates.core.util;
import io.github.moulberry.notenoughupdates.util.Utils;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.ScaledResolution;
+import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.util.MathHelper;
import net.minecraft.util.ResourceLocation;
import org.lwjgl.input.Keyboard;
@@ -74,6 +75,7 @@ public class ArrowPagesUtils {
BUTTON_HEIGHT
);
Minecraft.getMinecraft().getTextureManager().bindTexture(resourcePacksTexture);
+ GlStateManager.color(1f, 1f, 1f, 1f);
if (currentPage != 0)
Utils.drawTexturedRect(