mirror of
https://github.com/PaperMC/Paper.git
synced 2024-08-20 19:33:32 +02:00
28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
From 2b1b2245d21bb6791cd6c8371bc4d5849c9a5fdb Mon Sep 17 00:00:00 2001
|
|
From: Zach Brown <Zbob750@live.com>
|
|
Date: Fri, 5 Dec 2014 22:44:50 -0600
|
|
Subject: [PATCH] Add a constructor for setting header and footer
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/PacketPlayOutPlayerListHeaderFooter.java b/src/main/java/net/minecraft/server/PacketPlayOutPlayerListHeaderFooter.java
|
|
index 985e437..8acd298 100644
|
|
--- a/src/main/java/net/minecraft/server/PacketPlayOutPlayerListHeaderFooter.java
|
|
+++ b/src/main/java/net/minecraft/server/PacketPlayOutPlayerListHeaderFooter.java
|
|
@@ -21,6 +21,13 @@ public class PacketPlayOutPlayerListHeaderFooter implements Packet {
|
|
packetdataserializer.a(this.b);
|
|
}
|
|
|
|
+ // PaperSpigot start - Add a constructor for setting both the header and the footer
|
|
+ public PacketPlayOutPlayerListHeaderFooter(IChatBaseComponent header, IChatBaseComponent footer) {
|
|
+ this.a = header;
|
|
+ this.b = footer;
|
|
+ }
|
|
+ // PaperSpigot end
|
|
+
|
|
public void a(PacketListenerPlayOut packetlistenerplayout) {
|
|
packetlistenerplayout.a(this);
|
|
}
|
|
--
|
|
1.9.1
|
|
|