mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-30 12:11:47 +01:00
fix? #5222
This commit is contained in:
parent
0f2575de29
commit
d23f8b62ef
2 changed files with 7 additions and 5 deletions
|
@ -2301,10 +2301,10 @@ index 7a2a58bac8e721c3f0c64f69f77be07a51f76d58..29c5bd1f522310def76bf7b46a5b6146
|
|||
|
||||
/**
|
||||
diff --git a/src/main/java/org/bukkit/inventory/InventoryView.java b/src/main/java/org/bukkit/inventory/InventoryView.java
|
||||
index 14346d83bc99581b18e53d19af03708c0bf22cf7..b6cbf23dd40fb1cb1fec3c7d6918438ebf5bcc2e 100644
|
||||
index 14346d83bc99581b18e53d19af03708c0bf22cf7..a4e3d526db2d17dc923cbe82e53d3c902d61e1f3 100644
|
||||
--- a/src/main/java/org/bukkit/inventory/InventoryView.java
|
||||
+++ b/src/main/java/org/bukkit/inventory/InventoryView.java
|
||||
@@ -446,11 +446,23 @@ public abstract class InventoryView {
|
||||
@@ -446,11 +446,25 @@ public abstract class InventoryView {
|
||||
return getPlayer().setWindowProperty(prop, value);
|
||||
}
|
||||
|
||||
|
@ -2315,7 +2315,9 @@ index 14346d83bc99581b18e53d19af03708c0bf22cf7..b6cbf23dd40fb1cb1fec3c7d6918438e
|
|||
* @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
|
||||
+
|
||||
+ /**
|
||||
|
|
|
@ -6,7 +6,7 @@ Subject: [PATCH] Return chat component with empty text instead of throwing
|
|||
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/inventory/InventoryView.java b/src/main/java/org/bukkit/inventory/InventoryView.java
|
||||
index b6cbf23dd40fb1cb1fec3c7d6918438ebf5bcc2e..0c6d8172bea4c0aa6083259d31826a0a774b78c3 100644
|
||||
index a4e3d526db2d17dc923cbe82e53d3c902d61e1f3..2448e70d75ae7a678c6befac4506c103edb78875 100644
|
||||
--- a/src/main/java/org/bukkit/inventory/InventoryView.java
|
||||
+++ b/src/main/java/org/bukkit/inventory/InventoryView.java
|
||||
@@ -450,7 +450,7 @@ public abstract class InventoryView {
|
||||
|
@ -17,4 +17,4 @@ index b6cbf23dd40fb1cb1fec3c7d6918438ebf5bcc2e..0c6d8172bea4c0aa6083259d31826a0a
|
|||
+ * @return The title or empty string when title is {@code null}. <!-- Paper -->
|
||||
*/
|
||||
@NotNull
|
||||
public abstract net.kyori.adventure.text.Component title();
|
||||
public /*abstract*/ net.kyori.adventure.text.Component title() {
|
||||
|
|
Loading…
Reference in a new issue