mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-26 14:27:59 +01:00
Fixed Illagers not having all the normal render layers that other mobs do
This commit is contained in:
parent
358691570f
commit
db54120174
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue