diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-06-06 13:27:49 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-06-06 13:27:49 +0800 |
commit | 091590d76e30797ec27a143129146904c14dd2b3 (patch) | |
tree | c3a10caedb0934f07ac41d5e00d96f6817be43c6 /utils | |
parent | 80df8e23c4c4fea6e6c4f438151842070707116a (diff) | |
download | SoopyV2-091590d76e30797ec27a143129146904c14dd2b3.tar.gz SoopyV2-091590d76e30797ec27a143129146904c14dd2b3.tar.bz2 SoopyV2-091590d76e30797ec27a143129146904c14dd2b3.zip |
+ dungeon routes stuff
+ wing changes
Diffstat (limited to 'utils')
-rw-r--r-- | utils/renderUtils.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/renderUtils.js b/utils/renderUtils.js index b6228ff..51e54b1 100644 --- a/utils/renderUtils.js +++ b/utils/renderUtils.js @@ -113,7 +113,8 @@ let ret = { GL11.glEnable(GL11.GL_BLEND); GL11.glLineWidth(thickness); GL11.glDisable(GL11.GL_TEXTURE_2D); - if (!phase) GL11.glDepthMask(false); + if (phase) GL11.glDisable(GL11.GL_DEPTH_TEST); + GL11.glDepthMask(false); GlStateManager.func_179094_E(); Tessellator.begin(GL11.GL_LINE_STRIP).colorize(r, g, b); @@ -127,7 +128,8 @@ let ret = { GlStateManager.func_179121_F(); GL11.glEnable(GL11.GL_TEXTURE_2D); - if (!phase) GL11.glDepthMask(true); + GL11.glDepthMask(true); + if (phase) GL11.glEnable(GL11.GL_DEPTH_TEST); GL11.glDisable(GL11.GL_BLEND); }, drawBoxAtBlockNotVisThruWalls: function (x, y, z, colorR, colorG, colorB, w = 1, h = 1, a = 1) { |