mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-06 19:09:31 +01:00
declare child states
This commit is contained in:
parent
6760a96527
commit
77b06acad4
@ -173,9 +173,7 @@ public abstract class PermissionHolder {
|
||||
mergedCache.invalidate();
|
||||
|
||||
// Invalidate inheritance caches
|
||||
getAllNodesCache.invalidateAll();
|
||||
getAllNodesFilteredCache.invalidateAll();
|
||||
exportNodesCache.invalidateAll();
|
||||
invalidateInheritanceCaches();
|
||||
|
||||
// Get previous references
|
||||
Set<HolderReference> refs = plugin.getCachedStateManager().getInheritances(toReference());
|
||||
@ -190,6 +188,13 @@ public abstract class PermissionHolder {
|
||||
CachedStateManager.invalidateInheritances(plugin, refs);
|
||||
}
|
||||
|
||||
public void invalidateInheritanceCaches() {
|
||||
getAllNodesCache.invalidateAll();
|
||||
getAllNodesFilteredCache.invalidateAll();
|
||||
exportNodesCache.invalidateAll();
|
||||
declareState();
|
||||
}
|
||||
|
||||
private ImmutableSortedSet<LocalizedNode> cacheApply() {
|
||||
TreeSet<LocalizedNode> combined = new TreeSet<>(PriorityComparator.reverse());
|
||||
Set<Node> enduring = getNodes();
|
||||
|
Loading…
Reference in New Issue
Block a user