mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-30 04:02:50 +01:00
18 lines
858 B
Diff
18 lines
858 B
Diff
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 ee8819884868b70f2a3644141eca1d92abe2b7a8..b8043e9f92736ebfa0707613f2fec78b14c1fe72 100644
|
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftRegionAccessor.java
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftRegionAccessor.java
|
|
@@ -1021,6 +1021,7 @@ public abstract class CraftRegionAccessor implements RegionAccessor {
|
|
|
|
if (entity != null) {
|
|
entity.setPos(x, y, z);
|
|
+ entity.setRot(yaw, pitch); // Paper - Set Display Rotation
|
|
}
|
|
}
|
|
|