From c2536f244242d3df564fe6bf08504f3c2b6a4f7f Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Thu, 23 Dec 2021 23:57:05 +0800 Subject: support both chattriggers 2 and 1 --- features/cosmetics/cosmetic/dragon/dragonWings.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'features/cosmetics/cosmetic/dragon') diff --git a/features/cosmetics/cosmetic/dragon/dragonWings.js b/features/cosmetics/cosmetic/dragon/dragonWings.js index a5aeb68..08a45cc 100644 --- a/features/cosmetics/cosmetic/dragon/dragonWings.js +++ b/features/cosmetics/cosmetic/dragon/dragonWings.js @@ -3,6 +3,10 @@ import Cosmetic from "../../cosmetic.js"; const ModelDragon = Java.type("net.minecraft.client.model.ModelDragon") +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"); +} const Essential = Java.type("gg.essential.Essential") const EssentialCosmeticSlot = Java.type("gg.essential.cosmetics.CosmeticSlot") -- cgit