This commit is contained in:
paulevsGitch 2020-12-04 17:21:41 +03:00
parent 34800a80c3
commit 554a3d6401

View file

@ -44,12 +44,14 @@ public class ParticleGeyser extends SpriteBillboardParticle {
if (changeDir) {
changeDir = false;
check = false;
this.velocityX += MHelper.randRange(-0.2, 0.2, random);
this.velocityZ += MHelper.randRange(-0.2, 0.2, random);
}
else if (check) {
changeDir = world.getBlockState(mut).getFluidState().isEmpty();
check = !changeDir;
changeDir = world.getBlockState(mut.set(x, y, z)).getFluidState().isEmpty();
this.velocityX = 0;
this.velocityZ = 0;
}
}
super.tick();