3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-16 03:20:07 +01:00
Paper/Spigot-Server-Patches/0039-Backwards-compatible-PacketPlayOutEntityTeleport-con.patch
Zach Brown 20973ffd0f Make certain game mechanics configurable
Boat drops and rail placement at this time
2014-11-28 14:19:09 -06:00

35 Zeilen
1.4 KiB
Diff

From 8b4d0c8819ed092045e579c6cdfb854e44af037f 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 b637d25..921561c 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.1