Fixed elytras

This commit is contained in:
Sollace 2019-12-03 14:36:42 +02:00
parent 7f39615c24
commit 51f4bb17f6
2 changed files with 4 additions and 2 deletions

View file

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

View file

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