From 6c29722a22f715a1d0371f11be24ed23da77c1a1 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Fri, 6 Aug 2021 13:02:16 +0900 Subject: Fix Not being able to scroll --- src/main/java/kr/syeyoung/dungeonsguide/gui/MGui.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gui/MGui.java b/src/main/java/kr/syeyoung/dungeonsguide/gui/MGui.java index 086ecfed..f230369c 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/gui/MGui.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/gui/MGui.java @@ -19,6 +19,7 @@ package kr.syeyoung.dungeonsguide.gui; import kr.syeyoung.dungeonsguide.gui.elements.MRootPanel; +import kr.syeyoung.dungeonsguide.utils.GlStateUtils; import kr.syeyoung.dungeonsguide.utils.cursor.EnumCursor; import kr.syeyoung.dungeonsguide.utils.cursor.GLCursors; import lombok.Getter; @@ -70,6 +71,7 @@ public class MGui extends GuiScreen { mainPanel.render0(1, new Point(0,0), new Rectangle(0,0,Minecraft.getMinecraft().displayWidth, Minecraft.getMinecraft().displayHeight), i, j, i, j, partialTicks); GlStateManager.popMatrix(); GlStateManager.enableBlend(); + GlStateManager.enableDepth(); } catch (Throwable e) { e.printStackTrace(); } @@ -197,7 +199,7 @@ public class MGui extends GuiScreen { } - int wheel = Mouse.getDWheel(); + int wheel = Mouse.getEventDWheel(); if (wheel != 0) { mainPanel.mouseScrolled0(i, j,i,j, wheel); } -- cgit