/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2014
 *
 * See LICENSE for full License
 */

package uk.kihira.tails.client.render;

import net.minecraft.client.renderer.GlStateManager;
import uk.kihira.tails.api.IRenderHelper;
import uk.kihira.tails.client.model.tail.ModelCatTail;
import uk.kihira.tails.client.model.tail.ModelDevilTail;
import uk.kihira.tails.client.model.tail.ModelDragonTail;
import uk.kihira.tails.common.PartInfo;
import uk.kihira.tails.common.PartsData;
import net.minecraft.entity.EntityLivingBase;


public class PlayerRenderHelper implements IRenderHelper {

    @Override
    public void onPreRenderTail(EntityLivingBase entity, RenderPart tail, PartInfo info, double x, double y, double z) {
        if (info.partType == PartsData.PartType.EARS || info.partType == PartsData.PartType.MUZZLE || info.partType == PartsData.PartType.WINGS) return;
        if (tail.modelPart instanceof ModelDragonTail) {
            GlStateManager.translate(0F, 0.68F, 0.1F);
            GlStateManager.scale(0.8F, 0.8F, 0.8F);
        }
        else if (tail.modelPart instanceof ModelCatTail || tail.modelPart instanceof ModelDevilTail) {
            GlStateManager.translate(0F, 0.65F, 0.1F);
            GlStateManager.scale(0.9F, 0.9F, 0.9F);
        }
        else {
            if (entity.isSneaking()) GlStateManager.translate(0f, 0.82f, 0f);
            else GlStateManager.translate(0F, 0.65F, 0.1F);
            GlStateManager.scale(0.8F, 0.8F, 0.8F);
        }
    }
}

@@ -929,32 +929,115 @@
 ) %7B%0A            
+if (entity.isSneaking()) GlStateManager.translate(0f, 0.82f, 0f);%0A            else 
 GlStateManager.t
@@ -1232,32 +1232,115 @@
 ) %7B%0A            
+if (entity.isSneaking()) GlStateManager.translate(0f, 0.82f, 0f);%0A            else 
 GlStateManager.t

Fix #80 where some tails were not properly adjusting on sneaking