public boolean saveChunks(boolean par1, IProgressUpdate par2IProgressUpdate)
    {
        int i = 0;

        for (Iterator iterator = field_73245_g.iterator(); iterator.hasNext();)
        {
            Chunk chunk = (Chunk)iterator.next();

            if (par1)
            {
                func_73243_a(chunk);
            }

            if (chunk.needsSaving(par1))
            {
                func_73242_b(chunk);
                chunk.isModified = false;

                if (++i == 24 && !par1)
                {
                    return false;
                }
            }
        }

        if (par1)
        {
            if (field_73247_e == null)
            {
                return true;
            }

            field_73247_e.saveExtraData();
        }

        return true;
    }