summaryrefslogtreecommitdiffstats
path: root/nms-patches
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-11-10 20:36:35 +1100
committermd_5 <git@md-5.net>2018-11-10 20:36:35 +1100
commit3a9118280cba89f5bf5b14f1709993f6df609f5d (patch)
treed83e3b360b7dec032379366d881902663c05975e /nms-patches
parent1663a63de2df7ca41e645b7faf02df5961319667 (diff)
downloadcraftbukkit-3a9118280cba89f5bf5b14f1709993f6df609f5d.tar
craftbukkit-3a9118280cba89f5bf5b14f1709993f6df609f5d.tar.gz
craftbukkit-3a9118280cba89f5bf5b14f1709993f6df609f5d.tar.lz
craftbukkit-3a9118280cba89f5bf5b14f1709993f6df609f5d.tar.xz
craftbukkit-3a9118280cba89f5bf5b14f1709993f6df609f5d.zip
SPIGOT-4477: Arrows only firing direction of boat
Diffstat (limited to 'nms-patches')
-rw-r--r--nms-patches/PlayerConnection.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/nms-patches/PlayerConnection.patch b/nms-patches/PlayerConnection.patch
index 878808f6..e4c3a7e2 100644
--- a/nms-patches/PlayerConnection.patch
+++ b/nms-patches/PlayerConnection.patch
@@ -216,12 +216,12 @@
}
entity.setLocation(d3, d4, d5, f, f1);
-+ player.setLocation(d3, d4, d5, f, f1); // CraftBukkit
++ player.setLocation(d3, d4, d5, this.player.yaw, this.player.pitch); // CraftBukkit
boolean flag2 = worldserver.getCubes(entity, entity.getBoundingBox().shrink(0.0625D));
if (flag && (flag1 || !flag2)) {
entity.setLocation(d0, d1, d2, f, f1);
-+ player.setLocation(d0, d1, d2, f, f1); // CraftBukkit
++ player.setLocation(d0, d1, d2, this.player.yaw, this.player.pitch); // CraftBukkit
this.networkManager.sendPacket(new PacketPlayOutVehicleMove(entity));
return;
}