this.setParticleTextureIndex(114);
this.motionX *= 0.699999988079071D;
this.motionZ *= 0.699999988079071D;
}
if (this.particleGravity > 0) {
Material material = this.worldObj.getBlock(MathHelper.floor(this.posX), MathHelper.floor(this.posY), MathHelper.floor(this.posZ)).getMaterial();
if (material.isLiquid() || material.isSolid()) {
double d0 = MathHelper.floor(this.posY)
+ 1
- BlockLiquid.getLiquidHeightPercent(this.worldObj.getBlockMetadata(MathHelper.floor(this.posX), MathHelper.floor(this.posY),
MathHelper.floor(this.posZ)));
if (this.posY < d0) {
this.setDead();
}
}
} else {
Material material = this.worldObj.getBlock(MathHelper.ceil(this.posX), MathHelper.ceil(this.posY), MathHelper.ceil(this.posZ)).getMaterial();
if (material.isLiquid() || material.isSolid()) {
double d0 = MathHelper.ceil(this.posY)
+ 1
- BlockLiquid.getLiquidHeightPercent(this.worldObj.getBlockMetadata(MathHelper.ceil(this.posX), MathHelper.ceil(this.posY),
MathHelper.ceil(this.posZ)));
if (this.posY > d0) {