Skip to content

Commit

Permalink
修复ffa随机出生点保存
Browse files Browse the repository at this point in the history
  • Loading branch information
lt-name committed Feb 19, 2024
1 parent b6ce390 commit a8220f3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,11 @@ public void saveConfig() {
config.remove("blueTeamInitialItems");
config.remove("roundEndCleanItem");

ArrayList<String> randomSpawnList = new ArrayList<>();
for (Vector3 vector3 : this.randomSpawns) {
config.set("randomSpawns", Tools.vector3ToString(vector3));
randomSpawnList.add(Tools.vector3ToString(vector3));
}
config.set("randomSpawns", randomSpawnList);

config.save();
}
Expand Down

0 comments on commit a8220f3

Please sign in to comment.