make freecam not interfere with Efly
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m10s
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m10s
This commit is contained in:
parent
7c4aa7d33c
commit
3e94eca157
1 changed files with 24 additions and 22 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue