Program: 34194
Project: 34194
Buggy source:
@Override public void onEntityCollidedWithBlock(World world,BlockPos pos,IBlockState state,Entity entity){
  super.onEntityCollidedWithBlock(world,pos,state,entity);
  if (!(entity instanceof EntityLivingBase)) {
    if (entity instanceof EntityItem) {
      if (((EntityItem)entity).getEntityItem().getItem() == Items.REDSTONE) {
        if (!world.isRemote) {
          CraftingTools.tryCrafting(world,pos);
          entity.setDead();
        }
 else {
          Vec3d entityPosition=entity.getPositionVector();
          world.spawnParticle(EnumParticleTypes.SMOKE_NORMAL,entityPosition.xCoord,entityPosition.yCoord + 0.05f,entityPosition.zCoord,0.0D,0.0D,0.0D,new int[0]);
          world.spawnParticle(EnumParticleTypes.SMOKE_NORMAL,entityPosition.xCoord + 0.05f,entityPosition.yCoord,entityPosition.zCoord,0.0D,0.0D,0.0D,new int[0]);
          world.spawnParticle(EnumParticleTypes.SMOKE_NORMAL,entityPosition.xCoord,entityPosition.yCoord - 0.05f,entityPosition.zCoord + 0.05f,0.0D,0.0D,0.0D,new int[0]);
          world.playSound(entityPosition.xCoord,entityPosition.yCoord,entityPosition.zCoord,SoundEvents.BLOCK_LAVA_POP,SoundCategory.BLOCKS,0.2F,1.0F,false);
        }
      }
    }
    return;
  }
  int duration=ConfigurationHandler.PotionSettings.onBlockContactDuration;
  int amplifier=ConfigurationHandler.PotionSettings.onBlockContactAmplifier;
  if (duration > 0) {
    EntityLivingBase living=(EntityLivingBase)entity;
    PotionEffect active=living.getActivePotionEffect(Potionss.miniaturizationPotion);
    PotionEffect effect=new PotionEffect(Potionss.miniaturizationPotion,duration,amplifier,false,false);
    if (active != null) {
      active.combine(effect);
    }
 else {
      living.addPotionEffect(effect);
    }
  }
}

Fixed version (ground truth):
@Override public void onEntityCollidedWithBlock(World world,BlockPos pos,IBlockState state,Entity entity){
  super.onEntityCollidedWithBlock(world,pos,state,entity);
  if (!(entity instanceof EntityLivingBase)) {
    if (entity instanceof EntityItem) {
      if (((EntityItem)entity).getEntityItem().getItem() == Items.REDSTONE) {
        if (!world.isRemote) {
          CraftingTools.tryCrafting(world,pos);
          entity.setDead();
        }
 else {
          Vec3d entityPosition=entity.getPositionVector();
          world.spawnParticle(EnumParticleTypes.SMOKE_NORMAL,entityPosition.xCoord,entityPosition.yCoord + 0.05f,entityPosition.zCoord,0.0D,0.0D,0.0D,new int[0]);
          world.spawnParticle(EnumParticleTypes.SMOKE_NORMAL,entityPosition.xCoord + 0.05f,entityPosition.yCoord,entityPosition.zCoord,0.0D,0.0D,0.0D,new int[0]);
          world.spawnParticle(EnumParticleTypes.SMOKE_NORMAL,entityPosition.xCoord,entityPosition.yCoord - 0.05f,entityPosition.zCoord + 0.05f,0.0D,0.0D,0.0D,new int[0]);
          world.playSound(entityPosition.xCoord,entityPosition.yCoord,entityPosition.zCoord,SoundEvents.BLOCK_LAVA_POP,SoundCategory.BLOCKS,0.2F,1.0F,false);
        }
      }
    }
    return;
  }
  if (world.isRemote) {
    return;
  }
  int duration=ConfigurationHandler.PotionSettings.onBlockContactDuration;
  int amplifier=ConfigurationHandler.PotionSettings.onBlockContactAmplifier;
  if (duration > 0) {
    EntityLivingBase living=(EntityLivingBase)entity;
    PotionEffect active=living.getActivePotionEffect(Potionss.miniaturizationPotion);
    PotionEffect effect=new PotionEffect(Potionss.miniaturizationPotion,duration,amplifier,false,false);
    if (active != null) {
      active.combine(effect);
    }
 else {
      living.addPotionEffect(effect);
    }
  }
}