diff --git a/CommonCore b/CommonCore index 1cf75f3..9ea02eb 160000 --- a/CommonCore +++ b/CommonCore @@ -1 +1 @@ -Subproject commit 1cf75f37422f695822a5e5aa5fd9ad85eaee92f9 +Subproject commit 9ea02ebcd4620e7baa6980cd88e1a4dabd59e50c diff --git a/SpigotCore_Main/src/de/steamwar/inventory/SchematicSelector.java b/SpigotCore_Main/src/de/steamwar/inventory/SchematicSelector.java index 305ce13..e57ef68 100644 --- a/SpigotCore_Main/src/de/steamwar/inventory/SchematicSelector.java +++ b/SpigotCore_Main/src/de/steamwar/inventory/SchematicSelector.java @@ -409,7 +409,7 @@ public class SchematicSelector { nodes.removeIf(node -> !node.isDir()); break; case SCHEMATIC_TYPE: - nodes.addAll(SchematicNode.accessibleByUserTypeMap(user, target.type).get(parent==null?0:parent.getId())); + nodes.addAll(SchematicNode.accessibleByUserTypeParent(user, target.type, parent==null?null:parent.getId())); if(target.rank >= 0) { nodes.removeIf(node -> { if(node.isDir()) {