Skip to content

Commit

Permalink
3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
KrLite committed Feb 23, 2024
1 parent 6ce18cb commit ea6d788
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,4 @@ public static MutableText paintIdentifier(@NotNull Identifier identifier) {
.append(Text.literal(":").formatted(Formatting.GRAY))
.append(Text.literal(identifier.getPath()).formatted(Formatting.YELLOW));
}

public static MutableText paintIdentifier(@Nullable String identifierToParse) {
return Optional.ofNullable(Identifier.tryParse(identifierToParse))
.map(REICollapsibleEntries::paintIdentifier)
.orElse(Text.translatable("tagged.none").formatted(Formatting.GRAY));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public int run(CommandContext<FabricClientCommandSource> context) {

if (stack.getItem().getRegistryEntry().streamTags().findAny().isPresent()) {
context.getSource().sendFeedback(streamTags(stack));
} else context.getSource().sendFeedback(REICollapsibleEntries.paintIdentifier(""));
} else context.getSource().sendFeedback(Text.translatable("tagged.none"));

return SINGLE_SUCCESS;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"comment_tag": "Tags",

"tagged.#": "#",
"tagged.none": "Empty Tag",
"tagged.none": "§7Empty Tag",

"tagged.c.shulker_boxes": "Shulker Boxes",
"tagged.c.ores" : "Ores",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

"comment_tag": "标签",

"tagged.none": "空标签",
"tagged.none": "§7空标签",

"tagged.c.shulker_boxes": "潜影盒",
"tagged.c.ores" : "矿物",
Expand Down

0 comments on commit ea6d788

Please sign in to comment.