Skip to content

Commit

Permalink
fix: advancement condition tooltip bug
Browse files Browse the repository at this point in the history
Closes #153
  • Loading branch information
klikli-dev committed Dec 1, 2023
1 parent 5a475f2 commit 5b364a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ public static BookAdvancementCondition fromJson(JsonObject json) {

//default tooltip
var tooltip = Component.translatable(Tooltips.CONDITION_ADVANCEMENT,
Component.translatable(Util.makeDescriptionId("advancement", advancementId) + ".title"));
Component.translatable(
Util.makeDescriptionId("advancements", advancementId)
.replace(".minecraft", "") //minecraft does not include the namespace in the id
+ ".title"));

if (json.has("tooltip")) {
tooltip = tooltipFromJson(json);
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit 5b364a8

Please sign in to comment.