Skip to content

Commit

Permalink
Fix toasts being darker in inventory menus in b1.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Pixaurora committed Jan 23, 2025
1 parent f3007d0 commit e0d0411
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public void drawTexture(ResourcePath path, int width, int height, int x, int y,
public void drawGuiTextureSubsection(ResourcePath path, int width, int height, int x, int y, int subsectionWidth,
int subsectionHeight, int offsetX, int offsetY, double alpha) {
GL11.glEnable(GL11.GL_BLEND);
GL11.glEnable(GL11.GL_DEPTH_TEST);

GL11.glBindTexture(GL11.GL_TEXTURE_2D, Minecraft.INSTANCE.textureManager.load(this.conversions.convert(path)));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import java.util.ArrayList;
import java.util.List;

import com.mojang.blaze3d.platform.Lighting;

import net.minecraft.client.gui.GuiElement;
import net.pixaurora.kitten_cube.impl.math.Size;
import net.pixaurora.kitten_cube.impl.ui.display.GuiDisplay;
Expand Down Expand Up @@ -39,6 +41,8 @@ public void render() {
GuiDisplay display = new GuiDisplayImpl(this, this.conversionCache);
long frameTime = System.currentTimeMillis();

Lighting.turnOff();

this.renderers.removeIf(toast -> {
boolean shouldRemoveToast = toast.render(display, this.window, frameTime);

Expand Down

0 comments on commit e0d0411

Please sign in to comment.