From 0041d07151aab86ccec27535991cbf5e0bee2c02 Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Sun, 30 Dec 2018 14:42:54 +0100 Subject: [PATCH] Fixed ambiguous lambda IDEA wouldn't let me build the addon with the method reference :/ --- src/main/java/world/bentobox/challenges/ChallengesManager.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/world/bentobox/challenges/ChallengesManager.java b/src/main/java/world/bentobox/challenges/ChallengesManager.java index 47ac584..78e270b 100644 --- a/src/main/java/world/bentobox/challenges/ChallengesManager.java +++ b/src/main/java/world/bentobox/challenges/ChallengesManager.java @@ -325,7 +325,6 @@ public class ChallengesManager { /** * Checks if a challenge is complete or not - * @param uniqueId - unique ID - player's UUID * @param challengeName - Challenge uniqueId * @return - true if completed */ @@ -391,7 +390,7 @@ public class ChallengesManager { */ public void save(boolean async) { if (async) { - addon.getServer().getScheduler().runTaskAsynchronously(addon.getPlugin(), this::save); + addon.getServer().getScheduler().runTaskAsynchronously(addon.getPlugin(), () -> save()); } else { save(); }