Skip to content

Commit

Permalink
Fix black alpha from instrument screen as background of options screen
Browse files Browse the repository at this point in the history
  • Loading branch information
StavWasPlayZ committed Sep 14, 2024
1 parent 68e73f2 commit b77d22a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.cstav.genshinstrument.util.InstrumentEntityData;
import com.mojang.blaze3d.platform.InputConstants.Key;
import com.mojang.blaze3d.platform.InputConstants.Type;
import com.mojang.blaze3d.systems.RenderSystem;
import com.mojang.logging.LogUtils;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
Expand Down Expand Up @@ -439,8 +440,11 @@ public void render(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPa
}
public void renderInstrument(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick) {
// To omit background
for (Renderable renderable : Screens.getButtons(this))
for (Renderable renderable : Screens.getButtons(this)) {
RenderSystem.enableBlend();
renderable.render(pGuiGraphics, pMouseX, pMouseY, pPartialTick);
RenderSystem.disableBlend();
}
}


Expand Down

0 comments on commit b77d22a

Please sign in to comment.