3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-16 04:50:05 +01:00

SPIGOT-619: Force rotate head of entities when setting location.

Dieser Commit ist enthalten in:
LukBukkit 2016-11-23 22:21:08 +01:00 committet von md_5
Ursprung 281376dfb5
Commit 5245147d00

Datei anzeigen

@ -257,8 +257,11 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
entity.stopRiding();
entity.world = ((CraftWorld) location.getWorld()).getHandle();
entity.setLocation(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
// entity.setLocation() throws no event, and so cannot be cancelled
entity.setLocation(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
// SPIGOT-619: Force sync head rotation also
entity.h(location.getYaw()); // PAIL: setHeadRotation
return true;
}