Fixed Illagers not having all the normal render layers that other mobs do

This commit is contained in:
Sollace 2018-10-21 17:51:19 +02:00
parent 358691570f
commit db54120174

View file

@ -3,6 +3,8 @@ package com.minelittlepony.render.ponies;
import com.minelittlepony.model.PMAPI; import com.minelittlepony.model.PMAPI;
import com.minelittlepony.render.RenderPonyMob; import com.minelittlepony.render.RenderPonyMob;
import com.minelittlepony.render.layer.LayerHeldItemIllager; import com.minelittlepony.render.layer.LayerHeldItemIllager;
import com.minelittlepony.render.layer.LayerHeldPonyItem;
import net.minecraft.client.renderer.GlStateManager; import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.entity.RenderManager; import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.entity.monster.AbstractIllager; import net.minecraft.entity.monster.AbstractIllager;
@ -24,8 +26,8 @@ public abstract class RenderPonyIllager<T extends AbstractIllager> extends Rende
} }
@Override @Override
protected void addLayers() { protected LayerHeldPonyItem<T> createItemHoldingLayer() {
addLayer(new LayerHeldItemIllager<>(this)); return new LayerHeldItemIllager<>(this);
} }
@Override @Override