Skip to content

Commit

Permalink
Fixed image getting colored weird (ty nea!)
Browse files Browse the repository at this point in the history
  • Loading branch information
j10a1n15 committed Nov 27, 2023
1 parent 0c28298 commit 31a7521
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import io.github.moulberry.notenoughupdates.util.Utils
import net.minecraft.client.Minecraft
import net.minecraft.client.gui.Gui
import net.minecraft.client.gui.ScaledResolution
import net.minecraft.client.renderer.GlStateManager
import net.minecraft.util.ResourceLocation
import org.lwjgl.opengl.GL11

Expand Down Expand Up @@ -52,6 +53,8 @@ class RenderBackground {
val textureLocation = ResourceLocation("skyhanni", "scoreboard.png")
val rareTextureLocation = ResourceLocation("skyhanni", "rareScoreboardBackground.png")

GlStateManager.color(1f,1f,1f, 1f)

if (config.backgroundConfig.enabled && config.backgroundConfig.useCustomBackgroundImage) {
if (cooldown > 0) {
cooldown--
Expand Down

0 comments on commit 31a7521

Please sign in to comment.