summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2017-10-01 11:01:49 +1100
committermd_5 <git@md-5.net>2017-10-01 11:01:49 +1100
commit59fa98bfb7ca40b65af91af573708fab4e1b4f6a (patch)
tree64d1a34037ab2154c04f60e645fb9bbf10aba8ce /src/main
parenta3b3a421ac4ace7786a5375c4c0b4c39d3d9d0ba (diff)
downloadcraftbukkit-59fa98bfb7ca40b65af91af573708fab4e1b4f6a.tar
craftbukkit-59fa98bfb7ca40b65af91af573708fab4e1b4f6a.tar.gz
craftbukkit-59fa98bfb7ca40b65af91af573708fab4e1b4f6a.tar.lz
craftbukkit-59fa98bfb7ca40b65af91af573708fab4e1b4f6a.tar.xz
craftbukkit-59fa98bfb7ca40b65af91af573708fab4e1b4f6a.zip
SPIGOT-3587: Set head rotation when spawning entity
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftWorld.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
index b3276695..1941e3a2 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
@@ -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);