diff --git a/src/main/java/com/minelittlepony/client/render/entity/feature/SkullFeature.java b/src/main/java/com/minelittlepony/client/render/entity/feature/SkullFeature.java index ac76b3a1..97d8a12b 100644 --- a/src/main/java/com/minelittlepony/client/render/entity/feature/SkullFeature.java +++ b/src/main/java/com/minelittlepony/client/render/entity/feature/SkullFeature.java @@ -26,8 +26,6 @@ import net.minecraft.nbt.CompoundTag; import net.minecraft.nbt.NbtHelper; import net.minecraft.village.VillagerDataContainer; -import static com.mojang.blaze3d.platform.GlStateManager.*; - public class SkullFeature & IPonyModel> extends AbstractPonyFeature { public SkullFeature(IPonyRenderContext renderPony) { @@ -52,8 +50,6 @@ public class SkullFeature & IPo stack.translate(0, 0, 0.15F); } - color4f(1, 1, 1, 1); - if (item instanceof BlockItem && ((BlockItem) item).getBlock() instanceof AbstractSkullBlock) { boolean isVillager = entity instanceof VillagerDataContainer; @@ -76,11 +72,11 @@ public class SkullFeature & IPo } private void renderSkull(MatrixStack stack, VertexConsumerProvider renderContext, ItemStack itemstack, boolean isVillager, float limbDistance, int lightUv) { - translatef(0, 0, -0.14F); + stack.translate(0, 0, -0.14F); float f = 1.1875f; - scalef(f, -f, -f); + stack.scale(f, -f, -f); if (isVillager) { - translatef(0, 0.0625F, 0); + stack.translate(0, 0.0625F, 0); } GameProfile profile = null; @@ -100,6 +96,7 @@ public class SkullFeature & IPo SkullType type = ((AbstractSkullBlock) ((BlockItem) itemstack.getItem()).getBlock()).getSkullType(); + stack.translate(-0.5, 0, -0.5); SkullBlockEntityRenderer.render(null, 180, type, profile, limbDistance, stack, renderContext, lightUv); } }