Skip to content

Commit

Permalink
Use GlStateManager for the avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
IcarussOne committed Sep 1, 2024
1 parent b94baa9 commit e59a7ee
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
package com.verdantartifice.thaumicwonders.client.renderers.entity.monsters;

import org.lwjgl.opengl.GL11;

import com.verdantartifice.thaumicwonders.ThaumicWonders;
import com.verdantartifice.thaumicwonders.common.entities.monsters.EntityCorruptionAvatar;

import net.minecraft.client.model.ModelBiped;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.entity.RenderBiped;
import net.minecraft.client.renderer.entity.RenderLivingBase;
import net.minecraft.client.renderer.entity.RenderManager;
Expand Down Expand Up @@ -41,6 +40,6 @@ protected ResourceLocation getEntityTexture(EntityCorruptionAvatar entity) {
@Override
protected void preRenderCallback(EntityCorruptionAvatar entitylivingbaseIn, float partialTickTime) {
super.preRenderCallback(entitylivingbaseIn, partialTickTime);
GL11.glScalef(1.15F, 1.15F, 1.15F);
GlStateManager.scale(1.15F, 1.15F, 1.15F);
}
}

0 comments on commit e59a7ee

Please sign in to comment.