From 73e3e7465ab2888f869bf805c266e748eced4c4a Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Wed, 22 Dec 2021 21:59:29 +0800 Subject: readability change --- utils/renderUtils.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'utils') diff --git a/utils/renderUtils.js b/utils/renderUtils.js index 216364e..956df0b 100644 --- a/utils/renderUtils.js +++ b/utils/renderUtils.js @@ -1,3 +1,4 @@ +const { f, m } = require("../../mappings/mappings"); const GlStateManager = Java.type("net.minecraft.client.renderer.GlStateManager"); const GL11 = Java.type("org.lwjgl.opengl.GL11"); @@ -135,7 +136,7 @@ module.exports = { GL11.glDisable(GL11.GL_TEXTURE_2D); GL11.glDisable(GL11.GL_DEPTH_TEST); GL11.glDepthMask(false); - GlStateManager.func_179094_E(); + GlStateManager[m.pushMatrix]() Tessellator.begin(3).colorize(colorR, colorG, colorB); @@ -162,7 +163,7 @@ module.exports = { Tessellator.draw(); - GlStateManager.func_179121_F(); + GlStateManager[m.popMatrix]() GL11.glEnable(GL11.GL_TEXTURE_2D); GL11.glEnable(GL11.GL_DEPTH_TEST); GL11.glDepthMask(true); -- cgit