return;
}
if(entity instanceof EntityPlayer || entity instanceof EntityMob && !((EntityLiving)entity).isEntityUndead())
{
EntityLiving ent = (EntityLiving)entity;
if(blockID == MineFactoryReloadedCore.sludgeLiquid.blockID)
{
ent.addPotionEffect(new PotionEffect(Potion.poison.id, 12 * 20, 0));
ent.addPotionEffect(new PotionEffect(Potion.weakness.id, 12 * 20, 0));
ent.addPotionEffect(new PotionEffect(Potion.confusion.id, 12 * 20, 0));
}
else if(blockID == MineFactoryReloadedCore.sewageLiquid.blockID)
{
ent.addPotionEffect(new PotionEffect(Potion.hunger.id, 12 * 20, 0));
ent.addPotionEffect(new PotionEffect(Potion.poison.id, 12 * 20, 0));
ent.addPotionEffect(new PotionEffect(Potion.moveSlowdown.id, 12 * 20, 0));
}
else if(blockID == MineFactoryReloadedCore.essenceLiquid.blockID)
{
ent.addPotionEffect(new PotionEffect(Potion.nightVision.id, 60 * 20, 0));
}
else if(blockID == MineFactoryReloadedCore.milkLiquid.blockID)
{
ent.addPotionEffect(new PotionEffect(Potion.digSpeed.id, 6 * 20, 0));
}
else if(blockID == MineFactoryReloadedCore.biofuelLiquid.blockID)
{
ent.addPotionEffect(new PotionEffect(Potion.moveSpeed.id, 12 * 20, 0));
}
}
super.onEntityCollidedWithBlock(world, x, y, z, entity);
}