From a77ca3e0af83ac2b8a2e2510799f010efc794a22 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Sun, 23 May 2021 17:24:58 +0900 Subject: Fix screen turning black --- src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java | 4 ++++ .../dungeonsguide/features/impl/dungeon/FeatureDungeonRoomName.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main/java/kr/syeyoung/dungeonsguide/features') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java b/src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java index 5d2cdb9f..dd4ed7e4 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java @@ -31,6 +31,7 @@ import net.minecraft.client.gui.ScaledResolution; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.client.renderer.OpenGlHelper; import org.lwjgl.opengl.GL11; +import org.lwjgl.opengl.GL14; import org.w3c.dom.css.Rect; import javax.sound.midi.MidiEvent; @@ -75,6 +76,9 @@ public abstract class GuiFeature extends AbstractFeature implements ScreenRender GlStateManager.popAttrib(); GlStateManager.enableBlend(); + GlStateManager.color(1,1,1,1); + GL14.glBlendFuncSeparate(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA, GL11.GL_ONE, GL11.GL_ONE_MINUS_SRC_ALPHA); + GlStateManager.tryBlendFuncSeparate(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA, GL11.GL_ONE, GL11.GL_ONE_MINUS_SRC_ALPHA); } diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureDungeonRoomName.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureDungeonRoomName.java index 6a1ff781..54631fcb 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureDungeonRoomName.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureDungeonRoomName.java @@ -69,7 +69,7 @@ public class FeatureDungeonRoomName extends TextHUDFeature { @Override public List getUsedTextStyle() { - return Arrays.asList("roomname"); + return Arrays.asList("roomname", "in"); } @Override -- cgit