Skip to content

Commit

Permalink
Fix build and remove sysout
Browse files Browse the repository at this point in the history
  • Loading branch information
Warriorrrr committed Jul 30, 2023
1 parent 7165cb7 commit 466dcf7
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ private static void loadSwitchAndItemUseMaterialsLists() {
* Scan over them and replace any grouping with the contents of the group.
* Add single item or grouping to ItemUseMaterials.
*/
itemUseMaterials.addAll(toMaterialSet(getStrArr(ConfigNodes.PROT_ITEM_USE_MAT));
itemUseMaterials.addAll(toMaterialSet(getStrArr(ConfigNodes.PROT_ITEM_USE_MAT)));
}

public static Set<EntityType> toEntityTypeSet(List<String> entityList) {
Expand Down Expand Up @@ -964,8 +964,6 @@ private static void loadCustomGroups() {

for (Map.Entry<String, String> entry : getMap(ConfigNodes.CUSTOM_LISTS_ENTITY_LISTS).entrySet())
EntityLists.addGroup(entry.getKey(), (EntityLists) constructRegistryList(EntityLists.newBuilder(), Tag.REGISTRY_ENTITY_TYPES, entry.getValue().split(","), EntityType::getEntityClass));

System.out.println(EntityLists.getGrouping("test"));
}

private static <T extends Keyed, F extends AbstractRegistryList<T>> AbstractRegistryList<T> constructRegistryList(final AbstractRegistryList.Builder<T, F> builder, final String registryName, final String[] elements, final Function<T, Class<?>> classExtractor) throws TownyInitException {
Expand Down

0 comments on commit 466dcf7

Please sign in to comment.