Skip to content

Commit

Permalink
fix broken tags
Browse files Browse the repository at this point in the history
  • Loading branch information
IMS212 committed Jan 23, 2025
1 parent 228fc11 commit 23e963f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ private static void addTag(TagEntry tagEntry, Object2IntMap<BlockState> idMap, i
List<TagKey<Block>> compatibleTags = BuiltInRegistries.BLOCK.getTagNames().filter(t -> t.location().getNamespace().equalsIgnoreCase(tagEntry.id().getNamespace()) &&
t.location().getPath().equalsIgnoreCase(tagEntry.id().getName())).toList();

if (compatibleTags.isEmpty() && IrisPlatformHelpers.getInstance().isDevelopmentEnvironment()) {
Iris.logger.warn("Failed to find the tag " + tagEntry.id());
if (compatibleTags.isEmpty()) {
if (IrisPlatformHelpers.getInstance().isDevelopmentEnvironment())
Iris.logger.warn("Failed to find the tag " + tagEntry.id());
} else if (compatibleTags.size() > 1) {
Iris.logger.fatal("You've broke the system; congrats. More than one tag matched " + tagEntry.id());
} else {
Expand Down

0 comments on commit 23e963f

Please sign in to comment.