Fix PaperAdvancementDisplay

This commit is contained in:
Bjarne Koll
2023-09-22 15:19:33 +02:00
parent f865f927a0
commit c3c850f4fc

View File

@@ -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) {