mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 11:06:29 +01:00
SPIGOT-3587: Set head rotation when spawning entity
This commit is contained in:
parent
a3b3a421ac
commit
59fa98bfb7
@ -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…
Reference in New Issue
Block a user