Final harsh way to fix the ambiguity???

This commit is contained in:
Florian CUNY 2018-12-30 15:01:21 +01:00
parent 11a86b1445
commit bf1890c392

View File

@ -20,6 +20,7 @@ import org.bukkit.World;
import org.bukkit.inventory.Inventory; import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.ItemStack;
import org.bukkit.scheduler.BukkitTask;
import world.bentobox.challenges.commands.admin.SurroundChallengeBuilder; import world.bentobox.challenges.commands.admin.SurroundChallengeBuilder;
import world.bentobox.challenges.objects.ChallengeLevels; import world.bentobox.challenges.objects.ChallengeLevels;
import world.bentobox.challenges.objects.Challenges; import world.bentobox.challenges.objects.Challenges;
@ -390,7 +391,7 @@ public class ChallengesManager {
*/ */
public void save(boolean async) { public void save(boolean async) {
if (async) { if (async) {
addon.getServer().getScheduler().runTaskAsynchronously(addon.getPlugin(), new Runnable() { BukkitTask task = addon.getServer().getScheduler().runTaskAsynchronously(addon.getPlugin(), new Runnable() {
@Override @Override
public void run() { public void run() {
save(); save();