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:
@@ -220,12 +220,12 @@ public class BotList {
|
||||
|
||||
bot.disconnect();
|
||||
|
||||
this.resumeDataStorage.removeSavedData(bot);
|
||||
if (event.shouldSave()) {
|
||||
if (resume) {
|
||||
this.resumeDataStorage.save(bot);
|
||||
} else {
|
||||
this.manualSaveDataStorage.save(bot);
|
||||
this.resumeDataStorage.removeSavedData(bot);
|
||||
}
|
||||
} else {
|
||||
bot.dropAll(true);
|
||||
|
||||
Reference in New Issue
Block a user