mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-12-30 21:07:47 +01:00
Fixed ambiguous lambda
IDEA wouldn't let me build the addon with the method reference :/
This commit is contained in:
parent
202bcb9dbb
commit
0041d07151
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user