2015-01-29 21:26:20 +00:00
|
|
|
From 3f217e4361be07e0c8e4766310f6304c21f66c4c Mon Sep 17 00:00:00 2001
|
2015-01-29 21:25:50 +00:00
|
|
|
From: Zach Brown <zach.brown@destroystokyo.com>
|
2014-12-06 04:47:37 +00:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
--
|
2015-01-29 21:26:20 +00:00
|
|
|
1.9.5.msysgit.0
|
2014-12-06 04:47:37 +00:00
|
|
|
|