SteamWar/SpigotCore
Archiviert
13
0

Merge pull request 'Hotfix: SchematicSelector' (#228) from fix_gui into master
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Reviewed-on: #228
Dieser Commit ist enthalten in:
Lixfel 2023-02-16 14:06:29 +01:00
Commit 956739f569

Datei anzeigen

@ -163,7 +163,7 @@ public class SchematicSelector {
} }
if(!singleDirOpen) { if(!singleDirOpen) {
if(NodeMember.getNodeMember(parent.getId(), user.getId()) != null) { if(NodeMember.getNodeMember(parent.getId(), user.getId()) != null) {
return Optional.ofNullable(SchematicNode.byIdAndUser(user, parent.getId())).flatMap(SchematicNode::getOptionalParent).map(integer -> SchematicNode.byIdAndUser(user, integer)).orElse(null); return NodeMember.getNodeMember(parent.getId(), user.getId()).getParent().map(integer -> SchematicNode.byIdAndUser(user, integer)).orElse(null);
} else { } else {
return getParent(parent).orElse(null); return getParent(parent).orElse(null);
} }