aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java
diff options
context:
space:
mode:
authorBuildTools <james.jenour@protonmail.com>2021-01-24 17:11:22 +0800
committerBuildTools <james.jenour@protonmail.com>2021-01-24 17:11:22 +0800
commit64959d248b383375274628b5e8d83cd7f9c4e96d (patch)
treedc08ffe36b900b40e5e46cbd888986ab218a1152 /src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java
parentca13cc0c881480a8d3f0d653eab937f336fd870e (diff)
downloadnotenoughupdates-64959d248b383375274628b5e8d83cd7f9c4e96d.tar.gz
notenoughupdates-64959d248b383375274628b5e8d83cd7f9c4e96d.tar.bz2
notenoughupdates-64959d248b383375274628b5e8d83cd7f9c4e96d.zip
PRE10
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java
index 12a95484..9012e67e 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java
@@ -1512,6 +1512,8 @@ public class NEUOverlay extends Gui {
* is enabled)
*/
public void renderOverlay() {
+ GlStateManager.enableDepth();
+
int width = Utils.peekGuiScale().getScaledWidth();
int height = Utils.peekGuiScale().getScaledHeight();
int mouseX = Mouse.getX() * width / Minecraft.getMinecraft().displayWidth;