Skip to content

Commit

Permalink
Allow for registration of categories with empty block lists
Browse files Browse the repository at this point in the history
  • Loading branch information
2008Choco committed Feb 11, 2024
1 parent 19f56d7 commit 9878edb
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -513,15 +513,9 @@ public void reloadToolCategoryRegistryConfig() {
}

Collection<String> blockStateStrings = config.getBlockListKeys();
if (blockStateStrings.isEmpty()) {
this.getLogger().info(String.format("No block list configured for category with id \"%s\". Ignoring registration.", categoryId));
continue;
}

BlockList blocklist = BlockList.parseBlockList(blockStateStrings, getLogger());
if (blocklist.size() == 0) {
this.getLogger().info(String.format("No block list configured for category with id \"%s\". Ignoring registration.", categoryId));
continue;
this.getLogger().info(String.format("No block list configured for category with id \"%s\"! Is this intentional?", categoryId));
}

if (!hand) {
Expand Down

0 comments on commit 9878edb

Please sign in to comment.