mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2025-01-04 07:28:13 +01:00
Fix NPE caused by generating the wrong ExtractedContexts type - closes #185
This commit is contained in:
parent
8d86eed0a7
commit
f97aa651a0
@ -452,7 +452,7 @@ public class LuckPermsSubjectData implements LPSubjectData {
|
||||
} catch (ObjectLacksException ignored) {}
|
||||
});
|
||||
|
||||
MetaHolder metaHolder = holder.accumulateMeta(null, null, ExtractedContexts.generate(context));
|
||||
MetaHolder metaHolder = holder.accumulateMeta(null, null, ExtractedContexts.generate(service.calculateContexts(context)));
|
||||
int priority = (type.equals("prefix") ? metaHolder.getPrefixes() : metaHolder.getSuffixes()).keySet().stream()
|
||||
.mapToInt(e -> e).max().orElse(0);
|
||||
priority += 10;
|
||||
|
Loading…
Reference in New Issue
Block a user