mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 08:14:23 +01:00
Fixed elytras
This commit is contained in:
parent
7f39615c24
commit
51f4bb17f6
2 changed files with 4 additions and 2 deletions
|
@ -41,6 +41,7 @@ public class ElytraFeature<T extends LivingEntity, M extends EntityModel<T> & IP
|
||||||
|
|
||||||
EntityModel<T> elytra = getElytraModel();
|
EntityModel<T> elytra = getElytraModel();
|
||||||
|
|
||||||
|
getModel().copyStateTo(elytra);
|
||||||
if (elytra instanceof PonyElytra) {
|
if (elytra instanceof PonyElytra) {
|
||||||
((PonyElytra<T>)elytra).isSneaking = getContext().getEntityPony(entity).isCrouching(entity);
|
((PonyElytra<T>)elytra).isSneaking = getContext().getEntityPony(entity).isCrouching(entity);
|
||||||
}
|
}
|
||||||
|
@ -55,7 +56,7 @@ public class ElytraFeature<T extends LivingEntity, M extends EntityModel<T> & IP
|
||||||
|
|
||||||
protected void preRenderCallback(MatrixStack stack) {
|
protected void preRenderCallback(MatrixStack stack) {
|
||||||
M body = getModelWrapper().getBody();
|
M body = getModelWrapper().getBody();
|
||||||
stack.translate(0, body.getRiderYOffset(), 0.125F);
|
stack.translate(0, body.getRiderYOffset(), 0.125);
|
||||||
body.transform(BodyPart.BODY, stack);
|
body.transform(BodyPart.BODY, stack);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,9 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"right_wing": {
|
"right_wing": {
|
||||||
|
"mirror": true,
|
||||||
"cubes": [
|
"cubes": [
|
||||||
{"from": [ 0, 0, 0], "size": [10, 20, 2], "stretch": 1, "mirror": true}
|
{"from": [ 0, 0, 0], "size": [10, 20, 2], "stretch": 1}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue