Fixed ambiguous lambda

IDEA wouldn't let me build the addon with the method reference :/
This commit is contained in:
Florian CUNY 2018-12-30 14:42:54 +01:00
parent 202bcb9dbb
commit 0041d07151

View File

@ -325,7 +325,6 @@ public class ChallengesManager {
/** /**
* Checks if a challenge is complete or not * Checks if a challenge is complete or not
* @param uniqueId - unique ID - player's UUID
* @param challengeName - Challenge uniqueId * @param challengeName - Challenge uniqueId
* @return - true if completed * @return - true if completed
*/ */
@ -391,7 +390,7 @@ public class ChallengesManager {
*/ */
public void save(boolean async) { public void save(boolean async) {
if (async) { if (async) {
addon.getServer().getScheduler().runTaskAsynchronously(addon.getPlugin(), this::save); addon.getServer().getScheduler().runTaskAsynchronously(addon.getPlugin(), () -> save());
} else { } else {
save(); save();
} }