Skip to content

Commit

Permalink
Corrected the loading algorithm for block requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
Fly1337 committed Dec 21, 2024
1 parent 49aee4a commit bb75f2c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void loadBlocks() {
ConfigurationNode config = loader.loadUserFile("config.yml");

this.blockRequirements = new ArrayList<>();
List<? extends ConfigurationNode> blockNodes = config.node("requirements", "blocks").childrenList();
List<? extends ConfigurationNode> blockNodes = config.node("requirement", "blocks").childrenList();
for (ConfigurationNode blockNode : blockNodes) {
Material material = Material.valueOf(blockNode.node("material").getString().toUpperCase(Locale.ROOT));
boolean allowPlace = blockNode.node("allow_place").getBoolean();
Expand Down

0 comments on commit bb75f2c

Please sign in to comment.