Fixed wasp hurt highlighting
This commit is contained in:
parent
9a0a75eb23
commit
21df57a054
2 changed files with 14 additions and 9 deletions
|
@ -1,7 +1,5 @@
|
|||
package biomesoplenty.entities.models;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
|
@ -134,9 +132,6 @@ public class ModelWasp extends ModelBase
|
|||
@Override
|
||||
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
|
||||
{
|
||||
GL11.glRotatef(180F, 0.0F, 1.0F, 0.0F);
|
||||
GL11.glTranslatef(0.0F, 0.75F, 0.0F);
|
||||
|
||||
this.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
|
||||
|
||||
/*Head*/
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
package biomesoplenty.entities.render;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import net.minecraft.client.renderer.entity.RenderLiving;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLiving;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import biomesoplenty.entities.models.ModelWasp;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import biomesoplenty.entities.models.ModelWasp;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class RenderWasp extends RenderLiving
|
||||
{
|
||||
public RenderWasp()
|
||||
|
@ -17,6 +20,13 @@ public class RenderWasp extends RenderLiving
|
|||
this.shadowSize = 0.0F;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void preRenderCallback(EntityLivingBase entity, float partialTickTime)
|
||||
{
|
||||
GL11.glRotatef(180F, 0.0F, 1.0F, 0.0F);
|
||||
GL11.glTranslatef(0.0F, 0.75F, 0.0F);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected ResourceLocation getEntityTexture(Entity entity)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue