Program: 156836
Project: 156836
Buggy source:
@Override public void onEntityUpdate(){
  if (!firstUpdateDone) {
    firstUpdate();
    firstUpdateDone=true;
  }
  if (!worldObj.isRemote && needsUpdate) {
    updateDataServer();
    needsUpdate=false;
  }
  if (worldObj.isRemote) {
    updateDataClient();
    energyFX+=energySpendPerCycle;
    if (energyFX >= 10) {
      energyFX=0;
      Minecraft.getMinecraft().effectRenderer.addEffect(new EntityRobotEnergyFX(worldObj,posX + steamDx * 0.25,posY + steamDy * 0.25,posZ + steamDz * 0.25,steamDx * 0.05,steamDy * 0.05,steamDz * 0.05,energySpendPerCycle * 0.75F < 1 ? 1 : energySpendPerCycle * 0.75F));
    }
  }
  if (currentDockingStation != null) {
    motionX=0;
    motionY=0;
    motionZ=0;
    posX=currentDockingStation.x() + 0.5F + currentDockingStation.side().offsetX * 0.5F;
    posY=currentDockingStation.y() + 0.5F + currentDockingStation.side().offsetY * 0.5F;
    posZ=currentDockingStation.z() + 0.5F + currentDockingStation.side().offsetZ * 0.5F;
  }
  if (!worldObj.isRemote) {
    if (linkedDockingStation == null) {
      linkedDockingStation=RobotRegistry.getRegistry(worldObj).getStation(linkedDockingStationIndex.x,linkedDockingStationIndex.y,linkedDockingStationIndex.z,linkedDockingStationSide);
      linkedDockingStationIndex=null;
      if (linkedDockingStation == null || linkedDockingStation.robotTaking() != this) {
        setDead();
        return;
      }
    }
    if (currentDockingStationIndex != null) {
      currentDockingStation=(DockingStation)RobotRegistry.getRegistry(worldObj).getStation(currentDockingStationIndex.x,currentDockingStationIndex.y,currentDockingStationIndex.z,currentDockingStationSide);
      currentDockingStationIndex=null;
    }
    if (linkedDockingStation != null) {
      mainAI.cycle();
      if (energySpendPerCycle != (float)mainAI.getActiveAI().getEnergyCost()) {
        energySpendPerCycle=(float)mainAI.getActiveAI().getEnergyCost();
        needsUpdate=true;
      }
      if (mjStored <= 0) {
        setDead();
      }
    }
  }
  super.onEntityUpdate();
}

Fixed version (ground truth):
@Override public void onEntityUpdate(){
  if (!firstUpdateDone) {
    firstUpdate();
    firstUpdateDone=true;
  }
  if (!worldObj.isRemote && needsUpdate) {
    updateDataServer();
    needsUpdate=false;
  }
  if (worldObj.isRemote) {
    updateDataClient();
    energyFX+=energySpendPerCycle;
    if (energyFX >= 10) {
      energyFX=0;
      Minecraft.getMinecraft().effectRenderer.addEffect(new EntityRobotEnergyFX(worldObj,posX + steamDx * 0.25,posY + steamDy * 0.25,posZ + steamDz * 0.25,steamDx * 0.05,steamDy * 0.05,steamDz * 0.05,energySpendPerCycle * 0.75F < 1 ? 1 : energySpendPerCycle * 0.75F));
    }
  }
  if (currentDockingStation != null) {
    motionX=0;
    motionY=0;
    motionZ=0;
    posX=currentDockingStation.x() + 0.5F + currentDockingStation.side().offsetX * 0.5F;
    posY=currentDockingStation.y() + 0.5F + currentDockingStation.side().offsetY * 0.5F;
    posZ=currentDockingStation.z() + 0.5F + currentDockingStation.side().offsetZ * 0.5F;
  }
  if (!worldObj.isRemote) {
    if (linkedDockingStation == null) {
      linkedDockingStation=RobotRegistry.getRegistry(worldObj).getStation(linkedDockingStationIndex.x,linkedDockingStationIndex.y,linkedDockingStationIndex.z,linkedDockingStationSide);
      if (linkedDockingStation == null || linkedDockingStation.robotTaking() != this) {
        setDead();
        return;
      }
    }
    if (currentDockingStationIndex != null && currentDockingStation == null) {
      currentDockingStation=(DockingStation)RobotRegistry.getRegistry(worldObj).getStation(currentDockingStationIndex.x,currentDockingStationIndex.y,currentDockingStationIndex.z,currentDockingStationSide);
    }
    if (linkedDockingStation != null) {
      mainAI.cycle();
      if (energySpendPerCycle != (float)mainAI.getActiveAI().getEnergyCost()) {
        energySpendPerCycle=(float)mainAI.getActiveAI().getEnergyCost();
        needsUpdate=true;
      }
      if (mjStored <= 0) {
        setDead();
      }
    }
  }
  super.onEntityUpdate();
}