Improve the behaviour of the APIs (now somewhat redundant) holder refresh method

This commit is contained in:
Luck
2018-05-04 23:17:06 +01:00
Unverified
parent 10c0efaa5d
commit c4c98aaabf
2 changed files with 4 additions and 1 deletions
@@ -99,7 +99,7 @@ public class ApiPermissionHolder implements me.lucko.luckperms.api.PermissionHol
@Nonnull
@Override
public CompletableFuture<Void> refreshCachedData() {
return this.handle.getCachedData().reloadAll();
return CompletableFuture.runAsync(() -> this.handle.getCachedData().invalidateCaches());
}
@Nonnull