public void saveWorld(boolean var1, IProgressUpdate var2) {
        if (this.chunkProvider.canSave()) {
            if (var2 != null) {
                var2.func_594_b("Saving level");
            }

            this.saveLevel();
            if (var2 != null) {
                var2.displayLoadingString("Saving chunks");
            }

            this.chunkProvider.saveChunks(var1, var2);
        }
    }