Skip to content

Commit

Permalink
Fix gems mistakenly ending up tagged as tools
Browse files Browse the repository at this point in the history
Fixes #1267
  • Loading branch information
Su5eD committed Aug 7, 2024
1 parent 8ea98b1 commit 4c7d95a
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ public final class TagConverter {
private static final Pattern RAW_ORES_PATTERN = Pattern.compile("^raw_(.+?)_ores$");
private static final String TAG_ENTRY_SPLITTER = "_(?!.*_)";
private static final Collection<String> COMMON_TYPES = Set.of("small_dusts");
private static final Collection<String> COMMON_GROUP_PREFIXES = Set.of("tools", "gems");
private static final Collection<String> COMMON_GROUP_PREFIXES = Set.of("tools");
private static final Collection<String> COMMON_GROUP_PREFIXES_NO_ENTRYPATH = Set.of("gems");
private static final Map<String, String> ALIASES = Map.of(
"blocks", "storage_blocks",
"raw_ores", "raw_materials"
Expand Down Expand Up @@ -83,7 +84,8 @@ public static ResourceLocation getNormalizedTagName(String path, Collection<Reso
LOGGER.debug("Found existing prefixed forge tag {}", tag);
return tag;
}

}
for (String prefix : COMMON_GROUP_PREFIXES_NO_ENTRYPATH) {
// Handle plural to singular tag names (c:diamonds -> forge:gems/diamond)
// This will handle existing tags, but won't be able to detect nonexisted tag names like c:rubies -> forge:gems/ruby
// Well, it's better than nothing I guess
Expand Down

0 comments on commit 4c7d95a

Please sign in to comment.