aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-08-06 13:02:16 +0900
committersyeyoung <cyong06@naver.com>2021-08-06 13:02:16 +0900
commit6c29722a22f715a1d0371f11be24ed23da77c1a1 (patch)
tree7daa941ec6dd0fc6613f991a2911f41f4df664b3 /src
parent0eb7119eb1fab1ac0c7ea96955aa23889a4f3b2e (diff)
downloadSkyblock-Dungeons-Guide-6c29722a22f715a1d0371f11be24ed23da77c1a1.tar.gz
Skyblock-Dungeons-Guide-6c29722a22f715a1d0371f11be24ed23da77c1a1.tar.bz2
Skyblock-Dungeons-Guide-6c29722a22f715a1d0371f11be24ed23da77c1a1.zip
Fix Not being able to scroll
Diffstat (limited to 'src')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/gui/MGui.java4
1 files changed, 3 insertions, 1 deletions
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);
}