Fixed NPE when rendering heads

This commit is contained in:
Sollace 2019-01-08 22:34:15 +02:00
parent d144cea927
commit 55dea27d2f

View file

@ -1,5 +1,7 @@
package com.minelittlepony.render.skull;
import net.minecraft.client.Minecraft;
import com.minelittlepony.model.components.ModelPonyHead;
import com.minelittlepony.pony.data.IPony;
import com.minelittlepony.render.skull.PonySkullRenderer.ISkull;
@ -20,6 +22,6 @@ public abstract class PonySkull implements ISkull {
@Override
public void render(float animateTicks, float rotation, float scale) {
ponyHead.render(null, animateTicks, 0, 0, rotation, 0, scale);
ponyHead.render(Minecraft.getMinecraft().player, animateTicks, 0, 0, rotation, 0, scale);
}
}