mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-28 05:35:26 +01:00
Only resolve inheritances for groups which exist already
This commit is contained in:
parent
7b8654339c
commit
2ecaa39cb6
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user