diff options
author | Aikar <[email protected]> | 2018-11-02 23:24:35 -0400 |
---|---|---|
committer | Aikar <[email protected]> | 2018-11-02 23:24:35 -0400 |
commit | 857123a6538237efff9a7dc6a3cbd7588d2ede02 (patch) | |
tree | 7d51d3b0e9c21a06092bcb27e490dd477d6259b6 | |
parent | 4297106c093cd24459ecc67675a47192d67ed2fe (diff) | |
download | Paper-857123a6538237efff9a7dc6a3cbd7588d2ede02.tar.gz Paper-857123a6538237efff9a7dc6a3cbd7588d2ede02.zip |
Keep players yaw/pitch on vehicle updates
-rw-r--r-- | Spigot-Server-Patches/0367-Keep-players-yaw-pitch-on-vehicle-updates.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Spigot-Server-Patches/0367-Keep-players-yaw-pitch-on-vehicle-updates.patch b/Spigot-Server-Patches/0367-Keep-players-yaw-pitch-on-vehicle-updates.patch new file mode 100644 index 0000000000..fc6a018bfb --- /dev/null +++ b/Spigot-Server-Patches/0367-Keep-players-yaw-pitch-on-vehicle-updates.patch @@ -0,0 +1,28 @@ +From 182ee0d285eaeedc1c500912fc51359878544406 Mon Sep 17 00:00:00 2001 +From: Aikar <[email protected]> +Date: Fri, 2 Nov 2018 23:22:34 -0400 +Subject: [PATCH] Keep players yaw/pitch on vehicle updates + + +diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java +index 398f2fdf83..edd7ba353d 100644 +--- a/src/main/java/net/minecraft/server/PlayerConnection.java ++++ b/src/main/java/net/minecraft/server/PlayerConnection.java +@@ -375,12 +375,12 @@ public class PlayerConnection implements PacketListenerPlayIn, ITickable { + Location curPos = this.getPlayer().getLocation(); // Spigot + + entity.setLocation(d3, d4, d5, f, f1); +- player.setLocation(d3, d4, d5, f, f1); // CraftBukkit ++ player.setLocation(d3, d4, d5, player.yaw, player.pitch); // CraftBukkit // Paper + boolean flag2 = worldserver.getCubes(entity, entity.getBoundingBox().shrink(0.0625D)).isEmpty(); + + if (flag && (flag1 || !flag2)) { + entity.setLocation(d0, d1, d2, f, f1); +- player.setLocation(d0, d1, d2, f, f1); // CraftBukkit ++ player.setLocation(d3, d4, d5, player.yaw, player.pitch); // CraftBukkit // Paper + this.networkManager.sendPacket(new PacketPlayOutVehicleMove(entity)); + return; + } +-- +2.19.1 + |