mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-28 13:36:06 +01:00
Using the hard way to fix the ambiguity
This commit is contained in:
parent
44d20a2955
commit
11a86b1445
@ -390,7 +390,12 @@ public class ChallengesManager {
|
|||||||
*/
|
*/
|
||||||
public void save(boolean async) {
|
public void save(boolean async) {
|
||||||
if (async) {
|
if (async) {
|
||||||
addon.getServer().getScheduler().runTaskAsynchronously(addon.getPlugin(), () -> save());
|
addon.getServer().getScheduler().runTaskAsynchronously(addon.getPlugin(), new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
save();
|
||||||
|
}
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
save();
|
save();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user