Fixed deadmau5 ears being misaligned

This commit is contained in:
Sollace 2022-12-08 18:41:26 +00:00
parent e1dd8e9239
commit 1b584ed351
2 changed files with 4 additions and 3 deletions

View file

@ -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);
} }
} }

View file

@ -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] }
] ]
} }
} }