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

View File

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