Exemple #1
0
  private static boolean isChunkSavedPopulated(World world, int chunkX, int chunkZ) {
    File saveFolder = COWorldConfig.getWorldConfig(world).dimensionDir;
    DataInputStream stream = RegionFileCache.getChunkInputStream(saveFolder, chunkX, chunkZ);

    if (stream != null) {
      try {
        NBTTagCompound ex = CompressedStreamTools.read(stream);

        if (ex.hasKey("Level") && ex.getCompoundTag("Level").getBoolean("TerrainPopulated")) {
          return true;
        }
      } catch (IOException var6) {;
      }
    }

    return false;
  }