Fix spyglass placement and third person orientation of items in unicorn's auras

This commit is contained in:
Sollace 2023-04-10 17:04:44 +02:00
parent d97403fd26
commit 2e5fec3106

View file

@ -91,7 +91,7 @@ public class UnicornModel<T extends LivingEntity> extends EarthPonyModel<T> impl
float left = arm == Arm.LEFT ? -1 : 1; float left = arm == Arm.LEFT ? -1 : 1;
matrices.translate(-0.3F, -0.675F, -0.3F - (0.3F * left)); matrices.translate(0.4F - (0.3F * left), -0.675F, -0.3F);
UseAction action = getAttributes().heldStack.getUseAction(); UseAction action = getAttributes().heldStack.getUseAction();
@ -103,8 +103,8 @@ public class UnicornModel<T extends LivingEntity> extends EarthPonyModel<T> impl
if (main == arm) { if (main == arm) {
if (action == UseAction.SPYGLASS) { if (action == UseAction.SPYGLASS) {
Size size = getSize(); Size size = getSize();
float x = 0.4F; float x = 0.3F;
float z = -0.5F; float z = -0.4F;
if (size == Sizes.TALL || size == Sizes.YEARLING) { if (size == Sizes.TALL || size == Sizes.YEARLING) {
z += 0.05F; z += 0.05F;
@ -113,8 +113,7 @@ public class UnicornModel<T extends LivingEntity> extends EarthPonyModel<T> impl
z -= 0.1F; z -= 0.1F;
} }
//matrices.translate(x * left, -0.2, z); matrices.translate(x * left, 1, -z);
matrices.translate(-z, 0.9, x * left);
} else { } else {
matrices.translate(-0.6, -0.2, 0); matrices.translate(-0.6, -0.2, 0);
} }