Skip to content

Commit

Permalink
Using the hard way to fix the ambiguity
Browse files Browse the repository at this point in the history
  • Loading branch information
Poslovitch committed Dec 30, 2018
1 parent 44d20a2 commit 11a86b1
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,12 @@ private void savePlayer(UUID playerUUID) {
*/
public void save(boolean async) {
if (async) {
addon.getServer().getScheduler().runTaskAsynchronously(addon.getPlugin(), () -> save());
addon.getServer().getScheduler().runTaskAsynchronously(addon.getPlugin(), new Runnable() {
@Override
public void run() {
save();
}
});
} else {
save();
}
Expand Down

0 comments on commit 11a86b1

Please sign in to comment.