mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-25 13:57:59 +01:00
Fix spyglass placement and third person orientation of items in unicorn's auras
This commit is contained in:
parent
d97403fd26
commit
2e5fec3106
1 changed files with 4 additions and 5 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue