mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-29 14:16:09 +01:00
Attempt to resolve rare loading issue
This commit is contained in:
parent
f7cb0d21b7
commit
f2fff7cdb0
@ -1505,14 +1505,6 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #reload(ReloadCallback)}
|
||||
*/
|
||||
@Deprecated
|
||||
public void reloadQuests() {
|
||||
reload(null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Reload quests, actions, config settings, lang and modules, and player data
|
||||
*/
|
||||
@ -1549,18 +1541,19 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
loading = false;
|
||||
callback.execute(true);
|
||||
}
|
||||
});
|
||||
}
|
||||
} catch (final Exception e) {
|
||||
loading = false;
|
||||
e.printStackTrace();
|
||||
if (callback != null) {
|
||||
Bukkit.getScheduler().runTask(Quests.this, new Runnable() {
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
loading = false;
|
||||
callback.execute(false);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user