Using the hard way to fix the ambiguity

This commit is contained in:
Florian CUNY 2018-12-30 14:53:58 +01:00
parent 44d20a2955
commit 11a86b1445
1 changed files with 6 additions and 1 deletions

View File

@ -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();
}