Adjusted player motion when talking on clouds

This commit is contained in:
Sollace 2019-02-21 20:06:05 +02:00
parent c3029fe107
commit 5108afc19f

View file

@ -641,7 +641,7 @@ public class EntityCloud extends EntityFlying implements IAnimals, IInAnimate {
entity.onGround = true; entity.onGround = true;
entity.motionY += (((floatStrength > 2 ? 1 : floatStrength/2) * 0.699999998079071D) - entity.motionY + boundModifier * 0.7) * 0.10000000149011612D; entity.motionY += (((floatStrength > 2 ? 1 : floatStrength/2) * 0.699999998079071D) - entity.motionY + boundModifier * 0.7) * 0.10000000149011612D;
if (!getStationary()) { if (!getStationary()) {
entity.motionX -= 0.0105; entity.motionX += ((motionX - entity.motionX) / getCloudSize()) - 0.002F;
} }
if (!getStationary() && entity.motionY > 0.4 && world.rand.nextInt(900) == 0) { if (!getStationary() && entity.motionY > 0.4 && world.rand.nextInt(900) == 0) {