Ejemplo n.º 1
0
 public void saveChunk(Chunk chunk) { // lightstone - private -> public
   if (this.e != null) {
     try {
       chunk.t = this.world.getTime();
       this.e.a(this.world, chunk);
     } catch (Exception ioexception) { // lightstone - IOException -> Exception
       ioexception.printStackTrace();
     }
   }
 }
Ejemplo n.º 2
0
  public Chunk loadChunk(int i, int j) { // lightstone - private -> public
    if (this.e == null) {
      return null;
    } else {
      try {
        Chunk chunk = this.e.a(this.world, i, j);

        if (chunk != null) {
          chunk.t = this.world.getTime();
        }

        return chunk;
      } catch (Exception exception) {
        exception.printStackTrace();
        return null;
      }
    }
  }