aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0979-Fix-rotation-when-spawning-display-entities.patch
blob: d0ab343b2d6f0d4e11d231419d1d20e5f48df4c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Gameoholic <viner.atmic@gmail.com>
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 3de391034dc8367c538008893615514c628d948e..7673e6c8a16455366d46a64df00c97663089c2ce 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftRegionAccessor.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftRegionAccessor.java
@@ -987,6 +987,7 @@ public abstract class CraftRegionAccessor implements RegionAccessor {
 
             if (entity != null) {
                 entity.setPos(x, y, z);
+                entity.setRot(yaw, pitch); // Paper - Set Display Rotation
             }
         }