mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-22 13:10:03 +00:00
Only resolve inheritances for groups which exist already
This commit is contained in:
1 file changed
+5
-1
@@ -105,7 +105,11 @@ public class SpongeGroup extends Group {
|
||||
.map(LocalizedNode::getNode)
|
||||
.filter(Node::isGroupNode)
|
||||
.map(Node::getGroupName)
|
||||
.map(s -> getPlugin().getService().getGroupSubjects().loadSubject(s).join())
|
||||
.distinct()
|
||||
.map(n -> Optional.ofNullable(getPlugin().getGroupManager().getIfLoaded(n)))
|
||||
.filter(Optional::isPresent)
|
||||
.map(Optional::get)
|
||||
.map(SpongeGroup::sponge)
|
||||
.map(LPSubject::toReference)
|
||||
.collect(Collectors.toSet());
|
||||
|
||||
|
||||
Reference in new issue
Block a user