mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 08:14:23 +01:00
Fixed NPE when rendering heads
This commit is contained in:
parent
d144cea927
commit
55dea27d2f
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue