Program: 165936
Project: 165936
Buggy source:
public void createChamber(EntityPlayer player){
  int x1=xCoord;
  int y1=yCoord;
  int z1=zCoord;
  int x2=x1;
  int y2=y1;
  int z2=z1;
  for (int i=1; i < SpaceProjectorConfiguration.maxSpaceChamberDimension; i++) {
    if (x2 == x1) {
      if (worldObj.getBlock(x1 - i,y1,z1) == SpaceProjectorSetup.spaceChamberBlock) {
        x2=x1 - i;
      }
 else       if (worldObj.getBlock(x1 + i,y1,z1) == SpaceProjectorSetup.spaceChamberBlock) {
        x2=x1 + i;
      }
    }
    if (z2 == z1) {
      if (worldObj.getBlock(x1,y1,z1 - i) == SpaceProjectorSetup.spaceChamberBlock) {
        z2=z1 - i;
      }
 else       if (worldObj.getBlock(x1,y1,z1 + i) == SpaceProjectorSetup.spaceChamberBlock) {
        z2=z1 + i;
      }
    }
  }
  if (x1 == x2 || z2 == z1) {
    RFTools.message(player,EnumChatFormatting.RED + "String_Node_Str");
    return;
  }
  if (worldObj.getBlock(x2,y1,z2) != SpaceProjectorSetup.spaceChamberBlock) {
    RFTools.message(player,EnumChatFormatting.RED + "String_Node_Str");
    return;
  }
  for (int i=1; i < SpaceProjectorConfiguration.maxSpaceChamberDimension; i++) {
    if (worldObj.getBlock(x1,y1 - i,z1) == SpaceProjectorSetup.spaceChamberBlock) {
      y2=y1 - i;
      break;
    }
    if (worldObj.getBlock(x1,y1 + i,z1) == SpaceProjectorSetup.spaceChamberBlock) {
      y2=y1 + i;
      break;
    }
  }
  if (y1 == y2) {
    RFTools.message(player,EnumChatFormatting.RED + "String_Node_Str");
    return;
  }
  if (worldObj.getBlock(x2,y2,z2) != SpaceProjectorSetup.spaceChamberBlock) {
    RFTools.message(player,EnumChatFormatting.RED + "String_Node_Str");
    return;
  }
  if (worldObj.getBlock(x1,y2,z2) != SpaceProjectorSetup.spaceChamberBlock) {
    RFTools.message(player,EnumChatFormatting.RED + "String_Node_Str");
    return;
  }
  if (worldObj.getBlock(x2,y2,z1) != SpaceProjectorSetup.spaceChamberBlock) {
    RFTools.message(player,EnumChatFormatting.RED + "String_Node_Str");
    return;
  }
  minCorner=new Coordinate(Math.min(x1,x2) + 1,Math.min(y1,y2) + 1,Math.min(z1,z2) + 1);
  maxCorner=new Coordinate(Math.max(x1,x2) - 1,Math.max(y1,y2) - 1,Math.max(z1,z2) - 1);
  if (minCorner.getX() > maxCorner.getX() || minCorner.getY() > maxCorner.getY() || minCorner.getZ() > maxCorner.getZ()) {
    RFTools.message(player,EnumChatFormatting.RED + "String_Node_Str");
    minCorner=null;
    maxCorner=null;
    return;
  }
  RFTools.message(player,EnumChatFormatting.WHITE + "String_Node_Str");
  SpaceChamberRepository chamberRepository=SpaceChamberRepository.getChannels(worldObj);
  SpaceChamberRepository.SpaceChamberChannel chamberChannel=chamberRepository.getOrCreateChannel(channel);
  chamberChannel.setDimension(worldObj.provider.dimensionId);
  chamberChannel.setMinCorner(minCorner);
  chamberChannel.setMaxCorner(maxCorner);
  chamberRepository.save(worldObj);
  markDirty();
}

Fixed version (ground truth):
public void createChamber(EntityPlayer player){
  int x1=xCoord;
  int y1=yCoord;
  int z1=zCoord;
  int x2=x1;
  int y2=y1;
  int z2=z1;
  for (int i=1; i < SpaceProjectorConfiguration.maxSpaceChamberDimension; i++) {
    if (x2 == x1) {
      if (worldObj.getBlock(x1 - i,y1,z1) == SpaceProjectorSetup.spaceChamberBlock) {
        x2=x1 - i;
      }
 else       if (worldObj.getBlock(x1 + i,y1,z1) == SpaceProjectorSetup.spaceChamberBlock) {
        x2=x1 + i;
      }
    }
    if (z2 == z1) {
      if (worldObj.getBlock(x1,y1,z1 - i) == SpaceProjectorSetup.spaceChamberBlock) {
        z2=z1 - i;
      }
 else       if (worldObj.getBlock(x1,y1,z1 + i) == SpaceProjectorSetup.spaceChamberBlock) {
        z2=z1 + i;
      }
    }
  }
  if (x1 == x2 || z2 == z1) {
    RFTools.message(player,EnumChatFormatting.RED + "String_Node_Str");
    return;
  }
  if (worldObj.getBlock(x2,y1,z2) != SpaceProjectorSetup.spaceChamberBlock) {
    RFTools.message(player,EnumChatFormatting.RED + "String_Node_Str");
    return;
  }
  for (int i=1; i < SpaceProjectorConfiguration.maxSpaceChamberDimension; i++) {
    if (worldObj.getBlock(x1,y1 - i,z1) == SpaceProjectorSetup.spaceChamberBlock) {
      y2=y1 - i;
      break;
    }
    if (worldObj.getBlock(x1,y1 + i,z1) == SpaceProjectorSetup.spaceChamberBlock) {
      y2=y1 + i;
      break;
    }
  }
  if (y1 == y2) {
    RFTools.message(player,EnumChatFormatting.RED + "String_Node_Str");
    return;
  }
  if (worldObj.getBlock(x2,y2,z2) != SpaceProjectorSetup.spaceChamberBlock) {
    RFTools.message(player,EnumChatFormatting.RED + "String_Node_Str");
    return;
  }
  if (worldObj.getBlock(x1,y2,z2) != SpaceProjectorSetup.spaceChamberBlock) {
    RFTools.message(player,EnumChatFormatting.RED + "String_Node_Str");
    return;
  }
  if (worldObj.getBlock(x2,y2,z1) != SpaceProjectorSetup.spaceChamberBlock) {
    RFTools.message(player,EnumChatFormatting.RED + "String_Node_Str");
    return;
  }
  minCorner=new Coordinate(Math.min(x1,x2) + 1,Math.min(y1,y2) + 1,Math.min(z1,z2) + 1);
  maxCorner=new Coordinate(Math.max(x1,x2) - 1,Math.max(y1,y2) - 1,Math.max(z1,z2) - 1);
  if (minCorner.getX() > maxCorner.getX() || minCorner.getY() > maxCorner.getY() || minCorner.getZ() > maxCorner.getZ()) {
    RFTools.message(player,EnumChatFormatting.RED + "String_Node_Str");
    minCorner=null;
    maxCorner=null;
    return;
  }
  RFTools.message(player,EnumChatFormatting.WHITE + "String_Node_Str");
  SpaceChamberRepository chamberRepository=SpaceChamberRepository.getChannels(worldObj);
  SpaceChamberRepository.SpaceChamberChannel chamberChannel=chamberRepository.getOrCreateChannel(channel);
  chamberChannel.setDimension(worldObj.provider.dimensionId);
  chamberChannel.setMinCorner(minCorner);
  chamberChannel.setMaxCorner(maxCorner);
  chamberRepository.save(worldObj);
  markDirty();
  worldObj.markBlockForUpdate(xCoord,yCoord,zCoord);
}