diff options
Diffstat (limited to 'patches/server/0488-Expose-world-spawn-angle.patch')
-rw-r--r-- | patches/server/0488-Expose-world-spawn-angle.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/server/0488-Expose-world-spawn-angle.patch b/patches/server/0488-Expose-world-spawn-angle.patch new file mode 100644 index 0000000000..c2242a53f8 --- /dev/null +++ b/patches/server/0488-Expose-world-spawn-angle.patch @@ -0,0 +1,19 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Mark Vainomaa <[email protected]> +Date: Tue, 17 Nov 2020 19:13:09 +0200 +Subject: [PATCH] Expose world spawn angle + + +diff --git a/src/main/java/net/minecraft/server/players/PlayerList.java b/src/main/java/net/minecraft/server/players/PlayerList.java +index 9174b356fcd0a4ae33e4b9e0cb085bbdba31a20d..9cb8d94e81fd9ce5e3d09a6bae4fb8beaae09454 100644 +--- a/src/main/java/net/minecraft/server/players/PlayerList.java ++++ b/src/main/java/net/minecraft/server/players/PlayerList.java +@@ -853,7 +853,7 @@ public abstract class PlayerList { + if (location == null) { + worldserver1 = this.server.getLevel(Level.OVERWORLD); + blockposition = entityplayer1.getSpawnPoint(worldserver1); +- location = CraftLocation.toBukkit(blockposition, worldserver1.getWorld()).add(0.5F, 0.1F, 0.5F); ++ location = CraftLocation.toBukkit(blockposition, worldserver1.getWorld(), worldserver1.levelData.getSpawnAngle(), 0.0F).add(0.5F, 0.1F, 0.5F); // Paper - use world spawn angle + } + + Player respawnPlayer = entityplayer1.getBukkitEntity(); |