From c51f7610b240ef77e28a6d11753a38a601e7ad16 Mon Sep 17 00:00:00 2001
From: AnimeGitB <AnimeGitB@bigblueball.in>
Date: Sat, 22 Oct 2022 12:43:57 +1030
Subject: [PATCH] Save avatar in forceConstellationLevel (closes #1881)

---
 src/main/java/emu/grasscutter/game/avatar/Avatar.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/main/java/emu/grasscutter/game/avatar/Avatar.java b/src/main/java/emu/grasscutter/game/avatar/Avatar.java
index c3af9f62..4286a9a5 100644
--- a/src/main/java/emu/grasscutter/game/avatar/Avatar.java
+++ b/src/main/java/emu/grasscutter/game/avatar/Avatar.java
@@ -809,12 +809,14 @@ public class Avatar {
         if (level < 0) {  // Special case for resetConst to remove inactive depots too
             this.talentIdList.clear();
             this.recalcStats();
+            this.save();
             return;
         }
         this.talentIdList.removeAll(this.getTalentIdList());  // Only remove constellations from active depot
         for (int i = 0; i < level; i++)
             this.unlockConstellation(true);
         this.recalcStats();
+        this.save();
     }
 
     public boolean sendSkillExtraChargeMap() {
-- 
GitLab