From db5412017461cf0e381c8983276a539e090744ad Mon Sep 17 00:00:00 2001 From: Sollace Date: Sun, 21 Oct 2018 17:51:19 +0200 Subject: [PATCH] Fixed Illagers not having all the normal render layers that other mobs do --- .../com/minelittlepony/render/ponies/RenderPonyIllager.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/minelittlepony/render/ponies/RenderPonyIllager.java b/src/main/java/com/minelittlepony/render/ponies/RenderPonyIllager.java index bcd822f3..4441817e 100644 --- a/src/main/java/com/minelittlepony/render/ponies/RenderPonyIllager.java +++ b/src/main/java/com/minelittlepony/render/ponies/RenderPonyIllager.java @@ -3,6 +3,8 @@ package com.minelittlepony.render.ponies; import com.minelittlepony.model.PMAPI; import com.minelittlepony.render.RenderPonyMob; import com.minelittlepony.render.layer.LayerHeldItemIllager; +import com.minelittlepony.render.layer.LayerHeldPonyItem; + import net.minecraft.client.renderer.GlStateManager; import net.minecraft.client.renderer.entity.RenderManager; import net.minecraft.entity.monster.AbstractIllager; @@ -24,8 +26,8 @@ public abstract class RenderPonyIllager extends Rende } @Override - protected void addLayers() { - addLayer(new LayerHeldItemIllager<>(this)); + protected LayerHeldPonyItem createItemHoldingLayer() { + return new LayerHeldItemIllager<>(this); } @Override