Entity standing on cloud, moves with cloud

This commit is contained in:
Sollace 2019-01-30 13:26:46 +02:00
parent d1f087fc4b
commit 4de736507d

View file

@ -576,6 +576,9 @@ public class EntityCloud extends EntityFlying implements IAnimals {
entity.onGround = true;
entity.motionY += (((floatStrength > 2 ? 1 : floatStrength/2) * 0.699999998079071D) - entity.motionY + boundModifier * 0.7) * 0.10000000149011612D;
if (!getStationary()) {
entity.motionX -= 0.005;
}
if (!getStationary() && entity.motionY > 0.4 && world.rand.nextInt(900) == 0) {
spawnThunderbolt(getPosition());
@ -655,7 +658,7 @@ public class EntityCloud extends EntityFlying implements IAnimals {
}
public int setRainTimer(int val) {
if (val < 0) val = 0;
val = Math.max(0, val);
dataManager.set(RAINTIMER, val);
return val;
}