9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2025-12-19 14:59:32 +00:00

fix: fix bot auto resume

This commit is contained in:
MC_XiaoHei
2025-10-19 21:04:30 +08:00
parent 7284ad76ef
commit ebe9fc99c1

View File

@@ -220,12 +220,12 @@ public class BotList {
bot.disconnect(); bot.disconnect();
this.resumeDataStorage.removeSavedData(bot);
if (event.shouldSave()) { if (event.shouldSave()) {
if (resume) { if (resume) {
this.resumeDataStorage.save(bot); this.resumeDataStorage.save(bot);
} else { } else {
this.manualSaveDataStorage.save(bot); this.manualSaveDataStorage.save(bot);
this.resumeDataStorage.removeSavedData(bot);
} }
} else { } else {
bot.dropAll(true); bot.dropAll(true);