diff options
author | Moulberry <james.jenour@student.scotch.wa.edu.au> | 2020-10-25 10:20:59 +1100 |
---|---|---|
committer | Moulberry <james.jenour@student.scotch.wa.edu.au> | 2020-10-25 10:20:59 +1100 |
commit | 2397734d98c30a05db58bc6ef67607078889a386 (patch) | |
tree | b41287944a2c91c64e1de0905f2def9998b0f84d /src/main | |
parent | 3f86e881074dc4220aab23cae69f002c62f0b25a (diff) | |
download | NotEnoughUpdates-2397734d98c30a05db58bc6ef67607078889a386.tar.gz NotEnoughUpdates-2397734d98c30a05db58bc6ef67607078889a386.tar.bz2 NotEnoughUpdates-2397734d98c30a05db58bc6ef67607078889a386.zip |
1.4.6
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java b/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java index d8df52e7..04bad54f 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java @@ -122,7 +122,14 @@ public class Utils { GlStateManager.matrixMode(GL11.GL_MODELVIEW); GL11.glLoadMatrix(modelviewMatrixOld); } else { - Minecraft.getMinecraft().entityRenderer.setupOverlayRendering(); + GlStateManager.matrixMode(GL11.GL_PROJECTION); + GlStateManager.loadIdentity(); + GlStateManager.ortho(0.0D, + scaledresolution.getScaledWidth_double(), + scaledresolution.getScaledHeight_double(), 0.0D, 1000.0D, 3000.0D); + GlStateManager.matrixMode(GL11.GL_MODELVIEW); + GlStateManager.loadIdentity(); + GlStateManager.translate(0.0F, 0.0F, -2000.0F); } } |