Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 04:20:04 +01:00
19 Zeilen
856 B
Diff
19 Zeilen
856 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 4289cce80f9861b809062a29c0d89b9dbd0ba8cd..38a66bc89afa63db42273459415ace9629603744 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
|
|
}
|
|
}
|
|
|