Beispiel #1
0
  protected OChunk a(OWorld oworld, int i, int j, ONBTTagCompound onbttagcompound) {
    if (!onbttagcompound.c("Level")) {
      System.out.println("Chunk file at " + i + "," + j + " is missing level data, skipping");
      return null;
    } else if (!onbttagcompound.m("Level").c("Sections")) {
      System.out.println("Chunk file at " + i + "," + j + " is missing block data, skipping");
      return null;
    } else {
      OChunk ochunk = this.a(oworld, onbttagcompound.m("Level"));

      if (!ochunk.a(i, j)) {
        System.out.println(
            "Chunk file at "
                + i
                + ","
                + j
                + " is in the wrong location; relocating. (Expected "
                + i
                + ", "
                + j
                + ", got "
                + ochunk.g
                + ", "
                + ochunk.h
                + ")");
        onbttagcompound.a("xPos", i);
        onbttagcompound.a("zPos", j);
        ochunk = this.a(oworld, onbttagcompound.m("Level"));
      }

      ochunk.i();
      return ochunk;
    }
  }