From aaf508e6218d4e6b04751edaba20e039bb3cb8f5 Mon Sep 17 00:00:00 2001 From: Riley Park Date: Mon, 22 Feb 2021 06:15:22 -0800 Subject: [PATCH] fix? #5222 --- Spigot-API-Patches/Adventure.patch | 4 +++- ...Return-chat-component-with-empty-text-instead-of-thr.patch | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Spigot-API-Patches/Adventure.patch b/Spigot-API-Patches/Adventure.patch index e926e20a96..0de2a68654 100644 --- a/Spigot-API-Patches/Adventure.patch +++ b/Spigot-API-Patches/Adventure.patch @@ -2315,7 +2315,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 * @return The title. */ @NotNull -+ public abstract net.kyori.adventure.text.Component title(); ++ public /*abstract*/ net.kyori.adventure.text.Component title() { ++ return net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer.legacySection().deserialize(this.getTitle()); ++ } + // Paper end + + /** diff --git a/Spigot-API-Patches/Return-chat-component-with-empty-text-instead-of-thr.patch b/Spigot-API-Patches/Return-chat-component-with-empty-text-instead-of-thr.patch index 612e9e1f64..db87f797eb 100644 --- a/Spigot-API-Patches/Return-chat-component-with-empty-text-instead-of-thr.patch +++ b/Spigot-API-Patches/Return-chat-component-with-empty-text-instead-of-thr.patch @@ -17,4 +17,4 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + * @return The title or empty string when title is {@code null}. */ @NotNull - public abstract net.kyori.adventure.text.Component title(); + public /*abstract*/ net.kyori.adventure.text.Component title() {