aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches
diff options
context:
space:
mode:
authorGameoholic <[email protected]>2023-08-21 07:49:53 +0300
committerGitHub <[email protected]>2023-08-21 14:49:53 +1000
commited8401c748887e6b3e0ee6dce47ef576a68a452b (patch)
treed919eb1fd3baa238d9a65340d3a6cc8deef84df0 /patches
parent5b34a09ed01be76482284146a4ed4fef5573faef (diff)
downloadPaper-ed8401c748887e6b3e0ee6dce47ef576a68a452b.tar.gz
Paper-ed8401c748887e6b3e0ee6dce47ef576a68a452b.zip
Fix rotation for spawning display entities (#9552)
Diffstat (limited to 'patches')
-rw-r--r--patches/server/0994-Fix-rotation-when-spawning-display-entities.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/patches/server/0994-Fix-rotation-when-spawning-display-entities.patch b/patches/server/0994-Fix-rotation-when-spawning-display-entities.patch
new file mode 100644
index 0000000000..07b80c02a4
--- /dev/null
+++ b/patches/server/0994-Fix-rotation-when-spawning-display-entities.patch
@@ -0,0 +1,18 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Gameoholic <[email protected]>
+Date: Sun, 30 Jul 2023 13:30:34 +0300
+Subject: [PATCH] Fix rotation when spawning display entities
+
+
+diff --git a/src/main/java/org/bukkit/craftbukkit/CraftRegionAccessor.java b/src/main/java/org/bukkit/craftbukkit/CraftRegionAccessor.java
+index 995b3e31c5725f3d8879df349351eae3bcdfdddf..e2b3588f13ac5d5cc612a297a63780215872296b 100644
+--- a/src/main/java/org/bukkit/craftbukkit/CraftRegionAccessor.java
++++ b/src/main/java/org/bukkit/craftbukkit/CraftRegionAccessor.java
+@@ -986,6 +986,7 @@ public abstract class CraftRegionAccessor implements RegionAccessor {
+
+ if (entity != null) {
+ entity.setPos(x, y, z);
++ entity.setRot(yaw, pitch); // Paper - Set Display Rotation
+ }
+ }
+