mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-22 20:47:59 +01:00
Fixed deadmau5 ears being misaligned
This commit is contained in:
parent
e1dd8e9239
commit
1b584ed351
2 changed files with 4 additions and 3 deletions
|
@ -37,7 +37,7 @@ public class PlayerPonySkull implements ISkull {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Identifier getSkinResource(@Nullable GameProfile profile) {
|
public Identifier getSkinResource(@Nullable GameProfile profile) {
|
||||||
deadMau5.get().setVisible(profile != null && "deadmau5".equals(profile.getName()));
|
deadMau5.get().setVisible(true);//profile != null && "deadmau5".equals(profile.getName()));
|
||||||
|
|
||||||
if (profile != null) {
|
if (profile != null) {
|
||||||
Identifier skin = SkinsProxy.instance.getSkinTexture(profile);
|
Identifier skin = SkinsProxy.instance.getSkinTexture(profile);
|
||||||
|
@ -72,12 +72,13 @@ public class PlayerPonySkull implements ISkull {
|
||||||
ponyHead.getHead().pivotZ = v.z;
|
ponyHead.getHead().pivotZ = v.z;
|
||||||
ponyHead.setVisible(true);
|
ponyHead.setVisible(true);
|
||||||
ponyHead.setHeadRotation(animationProgress, yaw, 0);
|
ponyHead.setHeadRotation(animationProgress, yaw, 0);
|
||||||
|
deadMau5.get().setHeadRotation(animationProgress, yaw, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void render(MatrixStack stack, VertexConsumer vertices, int lightUv, int overlayUv, float red, float green, float blue, float alpha) {
|
public void render(MatrixStack stack, VertexConsumer vertices, int lightUv, int overlayUv, float red, float green, float blue, float alpha) {
|
||||||
ponyHead.renderHead(stack, vertices, lightUv, overlayUv, red, green, blue, alpha);
|
ponyHead.renderHead(stack, vertices, lightUv, overlayUv, red, green, blue, alpha);
|
||||||
ponyHead.renderHelmet(stack, vertices, lightUv, overlayUv, red, green, blue, alpha);
|
ponyHead.renderHelmet(stack, vertices, lightUv, overlayUv, red, green, blue, alpha);
|
||||||
deadMau5.get().render(stack, vertices, overlayUv, lightUv, red, green, blue, alpha);
|
deadMau5.get().render(stack, vertices, lightUv, overlayUv, red, green, blue, alpha);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"head": {
|
"head": {
|
||||||
"cubes": [
|
"cubes": [
|
||||||
{ "from": [-9, -13, -1], "size": [ 6, 6, 1] },
|
{ "from": [-9, -13, -1], "size": [ 6, 6, 1] },
|
||||||
{ "from": [ 3, 13, -1], "size": [ 6, 6, 1] }
|
{ "from": [ 3, -13, -1], "size": [ 6, 6, 1] }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue