mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-23 15:00:30 +01:00
Fix rotation for spawning display entities (#9552)
This commit is contained in:
parent
5b34a09ed0
commit
ed8401c748
1 changed files with 18 additions and 0 deletions
|
@ -0,0 +1,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 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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in a new issue