make freecam not interfere with Efly
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m10s

This commit is contained in:
Daniella / Tove 2024-06-12 21:48:39 +02:00
parent 7c4aa7d33c
commit 3e94eca157
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -234,6 +234,7 @@ public class ElytraFly extends Feature {
return;
if (mc.player.isElytraFlying()) {
if(!blockMovement) {
if(mc.getRenderViewEntity() == mc.player) {
double motionY = 0;
double[] motionXZ = MotionUtil.getMotion((double) hSpeed / 10);
@ -260,8 +261,9 @@ public class ElytraFly extends Feature {
} else {
mc.player.setVelocity(0, 0, 0);
}
//Prevent annoying bow behaviour and/or falling sounds when looking down
} else {
e.x = e.y = e.z = 0;
}
} else {
e.x = motionX;
e.y = motionY;