From d496a50737585dd7b9514d0c38cd575ce7ac54ed Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Wed, 18 Jan 2023 15:23:24 +0100 Subject: [PATCH] Fix: Folders not Showing --- .../src/de/steamwar/inventory/SchematicSelector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpigotCore_Main/src/de/steamwar/inventory/SchematicSelector.java b/SpigotCore_Main/src/de/steamwar/inventory/SchematicSelector.java index 8c7ed13..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?null:parent.getId())); + nodes.addAll(SchematicNode.accessibleByUserTypeParent(user, target.type, parent==null?null:parent.getId())); if(target.rank >= 0) { nodes.removeIf(node -> { if(node.isDir()) {