13
0
geforkt von Mirrors/Paper

Fix PaperAdvancementDisplay

Dieser Commit ist enthalten in:
Bjarne Koll 2023-09-22 15:19:33 +02:00
Ursprung f865f927a0
Commit c3c850f4fc

Datei anzeigen

@ -72,7 +72,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+
+ @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) {