mirror of
https://github.com/PaperMC/Paper.git
synced 2024-08-23 13:03:05 +02:00
32 lines
1.5 KiB
Diff
32 lines
1.5 KiB
Diff
diff --git a/src/main/java/net/minecraft/network/protocol/game/PacketPlayOutTitle.java b/src/main/java/net/minecraft/network/protocol/game/PacketPlayOutTitle.java
|
|
index fff22c40ba38575951e8e4821ade22b29d580a89..c397c52e8e24b85d892e4906178720cc70edc143 100644
|
|
--- a/src/main/java/net/minecraft/network/protocol/game/PacketPlayOutTitle.java
|
|
+++ b/src/main/java/net/minecraft/network/protocol/game/PacketPlayOutTitle.java
|
|
@@ -47,6 +47,17 @@ public class PacketPlayOutTitle implements Packet<PacketListenerPlayOut> {
|
|
}
|
|
|
|
}
|
|
+ // Paper start
|
|
+ public net.md_5.bungee.api.chat.BaseComponent[] components;
|
|
+
|
|
+ public PacketPlayOutTitle(EnumTitleAction action, net.md_5.bungee.api.chat.BaseComponent[] components, int fadeIn, int stay, int fadeOut) {
|
|
+ this.a = action;
|
|
+ this.components = components;
|
|
+ this.c = fadeIn;
|
|
+ this.d = stay;
|
|
+ this.e = fadeOut;
|
|
+ }
|
|
+ // Paper end
|
|
|
|
@Override
|
|
public void b(PacketDataSerializer packetdataserializer) throws IOException {
|
|
@@ -55,6 +66,8 @@ public class PacketPlayOutTitle implements Packet<PacketListenerPlayOut> {
|
|
// Paper start
|
|
if (this.adventure$text != null) {
|
|
packetdataserializer.writeComponent(this.adventure$text);
|
|
+ } else if (this.components != null) {
|
|
+ packetdataserializer.writeComponent(this.components);
|
|
} else
|
|
// Paper end
|
|
packetdataserializer.a(this.b);
|