mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-24 19:45:14 +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) {
|
||||
if (async) {
|
||||
addon.getServer().getScheduler().runTaskAsynchronously(addon.getPlugin(), () -> save());
|
||||
addon.getServer().getScheduler().runTaskAsynchronously(addon.getPlugin(), new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
save();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
save();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user