diff --git a/Spigot-Server-Patches/0003-mc-dev-imports.patch b/Spigot-Server-Patches/0003-mc-dev-imports.patch index 0ce84d0a4..1c1d98320 100644 --- a/Spigot-Server-Patches/0003-mc-dev-imports.patch +++ b/Spigot-Server-Patches/0003-mc-dev-imports.patch @@ -1,4 +1,4 @@ -From 49b5ab870fb9264549c00c2ecda33ac7affdfb13 Mon Sep 17 00:00:00 2001 +From 341f3417d0859e5ffede7045f1f81dfe43b12d0d Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Thu, 27 Nov 2014 23:53:56 -0600 Subject: [PATCH] mc-dev imports @@ -148,6 +148,43 @@ index 0000000..620685a + return this.id == MobEffectList.WEAKNESS.id ? (double) (-0.5F * (float) (i + 1)) : 1.3D * (double) (i + 1); + } +} +diff --git a/src/main/java/net/minecraft/server/PacketPlayOutPlayerListHeaderFooter.java b/src/main/java/net/minecraft/server/PacketPlayOutPlayerListHeaderFooter.java +new file mode 100644 +index 0000000..985e437 +--- /dev/null ++++ b/src/main/java/net/minecraft/server/PacketPlayOutPlayerListHeaderFooter.java +@@ -0,0 +1,31 @@ ++package net.minecraft.server; ++ ++public class PacketPlayOutPlayerListHeaderFooter implements Packet { ++ ++ private IChatBaseComponent a; ++ private IChatBaseComponent b; ++ ++ public PacketPlayOutPlayerListHeaderFooter() {} ++ ++ public PacketPlayOutPlayerListHeaderFooter(IChatBaseComponent ichatbasecomponent) { ++ this.a = ichatbasecomponent; ++ } ++ ++ public void a(PacketDataSerializer packetdataserializer) { ++ this.a = packetdataserializer.d(); ++ this.b = packetdataserializer.d(); ++ } ++ ++ public void b(PacketDataSerializer packetdataserializer) { ++ packetdataserializer.a(this.a); ++ packetdataserializer.a(this.b); ++ } ++ ++ public void a(PacketListenerPlayOut packetlistenerplayout) { ++ packetlistenerplayout.a(this); ++ } ++ ++ public void a(PacketListener packetlistener) { ++ this.a((PacketListenerPlayOut) packetlistener); ++ } ++} diff --git a/src/main/java/net/minecraft/server/TileEntityEnderChest.java b/src/main/java/net/minecraft/server/TileEntityEnderChest.java new file mode 100644 index 0000000..794cdc8 diff --git a/Spigot-Server-Patches/0042-Add-a-constructor-for-setting-header-and-footer.patch b/Spigot-Server-Patches/0042-Add-a-constructor-for-setting-header-and-footer.patch new file mode 100644 index 000000000..d77d1d986 --- /dev/null +++ b/Spigot-Server-Patches/0042-Add-a-constructor-for-setting-header-and-footer.patch @@ -0,0 +1,27 @@ +From 5524edc7e5c314b762f8f81aaaccdca084763fc8 Mon Sep 17 00:00:00 2001 +From: Zach Brown +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 +