From 9ef798aa90539bee01add0e81766643f4f4c201c Mon Sep 17 00:00:00 2001 From: Byteflux Date: Sun, 21 Sep 2014 22:25:58 -0500 Subject: [PATCH] Backwards compatible PacketPlayOutEntityTeleport constructor --- ...ible-PacketPlayOutEntityTeleport-con.patch | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Spigot-Server-Patches/0042-Backwards-compatible-PacketPlayOutEntityTeleport-con.patch diff --git a/Spigot-Server-Patches/0042-Backwards-compatible-PacketPlayOutEntityTeleport-con.patch b/Spigot-Server-Patches/0042-Backwards-compatible-PacketPlayOutEntityTeleport-con.patch new file mode 100644 index 0000000000..51e2d8917e --- /dev/null +++ b/Spigot-Server-Patches/0042-Backwards-compatible-PacketPlayOutEntityTeleport-con.patch @@ -0,0 +1,34 @@ +From c8ff350a74274c63eb223af0aa0c30d8fd8f4ab4 Mon Sep 17 00:00:00 2001 +From: Byteflux +Date: Sat, 13 Sep 2014 02:23:56 -0700 +Subject: [PATCH] Backwards compatible PacketPlayOutEntityTeleport constructor + + +diff --git a/src/main/java/net/minecraft/server/PacketPlayOutEntityTeleport.java b/src/main/java/net/minecraft/server/PacketPlayOutEntityTeleport.java +index b637d25..3352a18 100644 +--- a/src/main/java/net/minecraft/server/PacketPlayOutEntityTeleport.java ++++ b/src/main/java/net/minecraft/server/PacketPlayOutEntityTeleport.java +@@ -33,6 +33,20 @@ public class PacketPlayOutEntityTeleport extends Packet { + this.heightCorrection = heightCorrection; // Spigot Update - 20140916a + } + ++ /** ++ * PaperSpigot - Backwards compatible PacketPlayOutEntityTeleport contructor ++ */ ++ public PacketPlayOutEntityTeleport(int i, int j, int k, int l, byte b0, byte b1, boolean onGround) { ++ this(i, j, k, l, b0, b1, onGround, false); ++ } ++ ++ /** ++ * PaperSpigot - Backwards compatible PacketPlayOutEntityTeleport contructor ++ */ ++ public PacketPlayOutEntityTeleport(int i, int j, int k, int l, byte b0, byte b1) { ++ this(i, j, k, l, b0, b1, false, false); ++ } ++ + public void a(PacketDataSerializer packetdataserializer) { + this.a = packetdataserializer.readInt(); + this.b = packetdataserializer.readInt(); +-- +1.9.4.msysgit.0 +