-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ Co-authored-by: Jake Potrebic <[email protected]> | |
|
||
diff --git a/src/main/java/io/papermc/paper/advancement/PaperAdvancementDisplay.java b/src/main/java/io/papermc/paper/advancement/PaperAdvancementDisplay.java | ||
new file mode 100644 | ||
index 0000000000000000000000000000000000000000..b9c24b8d83b96d8c66cdf879650027f40eafb274 | ||
index 0000000000000000000000000000000000000000..1705f65d897114dd0813f6d366124cefafcb450e | ||
--- /dev/null | ||
+++ b/src/main/java/io/papermc/paper/advancement/PaperAdvancementDisplay.java | ||
@@ -0,0 +1,69 @@ | ||
|
@@ -72,7 +72,7 @@ index 0000000000000000000000000000000000000000..b9c24b8d83b96d8c66cdf879650027f4 | |
+ | ||
+ @Override | ||
+ public @NotNull Component displayName() { | ||
+ return PaperAdventure.asAdventure(Advancement.constructDisplayComponent(null, this.handle)); | ||
+ return PaperAdventure.asAdventure(Advancement.decorateName(java.util.Objects.requireNonNull(this.handle, "cannot build display name for null handle, invalid state"))); | ||
+ } | ||
+ | ||
+ public static @NotNull Frame asPaperFrame(@NotNull FrameType frameType) { | ||
|