示例#1
0
        //private static bool savingInProgress = false;

        private void OnSave(object sender, SavingEventArgs e)
        {
            VoidshroomTree.RemovalAll();
            //CaveCarrot.RemoveAll();
            ModState.visitedMineshafts.Clear();
            ModState.SaveMod();
        }
示例#2
0
 private void OnSave(object sender, SavingEventArgs e)
 {
     if (!savingInProgress)
     {
         savingInProgress = true;
         VoidshroomTree.RemovalAll();
         ModState.visitedMineshafts.Clear();
         ModState.SaveMod();
         savingInProgress = false;
     }
 }