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();
|
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);
|
||||||
|
|||||||
Reference in New Issue
Block a user