Skip to content

Commit

Permalink
Fixed ambiguous lambda
Browse files Browse the repository at this point in the history
IDEA wouldn't let me build the addon with the method reference :/
  • Loading branch information
Poslovitch committed Dec 30, 2018
1 parent 202bcb9 commit 0041d07
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,6 @@ public boolean isChallenge(World world, String name) {

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

0 comments on commit 0041d07

Please sign in to comment.