mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 17:22:55 +01:00
SPIGOT-3587: Set head rotation when spawning entity
By: md_5 <git@md-5.net>
This commit is contained in:
parent
32a52470be
commit
28399d699f
1 changed files with 1 additions and 0 deletions
|
@ -1108,6 +1108,7 @@ public class CraftWorld implements World {
|
|||
|
||||
if (entity != null) {
|
||||
entity.setLocation(x, y, z, yaw, pitch);
|
||||
entity.setHeadRotation(yaw); // SPIGOT-3587
|
||||
}
|
||||
} else if (Hanging.class.isAssignableFrom(clazz)) {
|
||||
Block block = getBlockAt(location);
|
||||
|
|
Loading…
Add table
Reference in a new issue