mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-06 23:22:10 -07:00
Fix PaperAdvancementDisplay
This commit is contained in:
@@ -72,7 +72,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+
|
+
|
||||||
+ @Override
|
+ @Override
|
||||||
+ public @NotNull Component displayName() {
|
+ 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) {
|
+ public static @NotNull Frame asPaperFrame(@NotNull FrameType frameType) {
|
||||||
|
Reference in New Issue
Block a user