mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
Backwards compatible PacketPlayOutEntityTeleport constructor
This commit is contained in:
parent
69bb19d9af
commit
e6bc90dccb
1 changed files with 34 additions and 0 deletions
|
@ -0,0 +1,34 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Byteflux <byte@byteflux.net>
|
||||
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 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/net/minecraft/server/PacketPlayOutEntityTeleport.java
|
||||
+++ b/src/main/java/net/minecraft/server/PacketPlayOutEntityTeleport.java
|
||||
@@ -0,0 +0,0 @@ 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
|
||||
|
Loading…
Reference in a new issue