mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-24 08:14:25 +00:00
Store result of primary group calculation in CachedMetaData
This commit is contained in:
15 files changed
+265
-178
No files matched your search
+1
-2
@@ -302,8 +302,7 @@ public class PermissionHolderSubjectData implements LPSubjectData {
|
||||
// remove all prefixes/suffixes from the user
|
||||
this.holder.removeIf(this.type, contexts, type.nodeType()::matches, false);
|
||||
|
||||
MetaAccumulator metaAccumulator = this.holder.accumulateMeta(null, QueryOptionsImpl.DEFAULT_CONTEXTUAL.toBuilder().context(contexts).build());
|
||||
metaAccumulator.complete();
|
||||
MetaAccumulator metaAccumulator = this.holder.accumulateMeta(QueryOptionsImpl.DEFAULT_CONTEXTUAL.toBuilder().context(contexts).build());
|
||||
int priority = metaAccumulator.getChatMeta(type).keySet().stream().mapToInt(e -> e).max().orElse(0);
|
||||
priority += 10;
|
||||
|
||||
|
||||
Reference in new issue
Block a user