3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 12:30:06 +01:00

SPIGOT-4477: Arrows only firing direction of boat

Dieser Commit ist enthalten in:
md_5 2018-11-10 20:36:35 +11:00
Ursprung 1663a63de2
Commit 3a9118280c

Datei anzeigen

@ -216,12 +216,12 @@
} }
entity.setLocation(d3, d4, d5, f, f1); 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)); boolean flag2 = worldserver.getCubes(entity, entity.getBoundingBox().shrink(0.0625D));
if (flag && (flag1 || !flag2)) { if (flag && (flag1 || !flag2)) {
entity.setLocation(d0, d1, d2, f, f1); 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)); this.networkManager.sendPacket(new PacketPlayOutVehicleMove(entity));
return; return;
} }