mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 11:38:40 +01:00
Improve the behaviour of the APIs (now somewhat redundant) holder refresh method
This commit is contained in:
parent
10c0efaa5d
commit
c4c98aaabf
@ -84,6 +84,9 @@ public interface PermissionHolder {
|
||||
/**
|
||||
* Refreshes and applies any changes to the cached holder data.
|
||||
*
|
||||
* <p>Calling this method is unnecessary in most cases. Cache updates are handled
|
||||
* behind the scenes by the implementation.</p>
|
||||
*
|
||||
* @return the task future
|
||||
* @since 4.0
|
||||
*/
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user