aboutsummaryrefslogtreecommitdiff
path: root/utils/renderUtils.js
diff options
context:
space:
mode:
Diffstat (limited to 'utils/renderUtils.js')
-rw-r--r--utils/renderUtils.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/renderUtils.js b/utils/renderUtils.js
index db1df8d..1491756 100644
--- a/utils/renderUtils.js
+++ b/utils/renderUtils.js
@@ -1,5 +1,9 @@
const { f, m } = require("../../mappings/mappings");
+if(!GlStateManager){
+ var GL11 = Java.type("org.lwjgl.opengl.GL11"); //using var so it goes to global scope
+ var GlStateManager = Java.type("net.minecraft.client.renderer.GlStateManager");
+}
module.exports = {
/* accepts parameters