9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2025-12-28 11:29:12 +00:00

fix: fix bot resume CME (#635)

This commit is contained in:
MC_XiaoHei
2025-07-31 18:19:18 +08:00
committed by GitHub
parent 08bfa446a5
commit 610eee60ef

View File

@@ -303,7 +303,8 @@ public class BotList {
if (bots == null) {
return;
}
bots.forEach(this::loadNewBot);
Set<String> botsCopy = new HashSet<>(bots);
botsCopy.forEach(this::loadNewBot);
}
public void updateBotLevel(ServerBot bot, ServerLevel level) {