2021-06-11 14:02:28 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Mark Vainomaa <mikroskeem@mikroskeem.eu>
|
|
|
|
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
|
2023-12-06 20:40:37 +01:00
|
|
|
index d101376e05abb72aa874c11fe820fdee469302b1..3ae3d47f3b94b4626f37ffbca1d2d958931b3b71 100644
|
2021-06-11 14:02:28 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/players/PlayerList.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/players/PlayerList.java
|
2023-12-06 04:00:14 +01:00
|
|
|
@@ -851,7 +851,7 @@ public abstract class PlayerList {
|
2021-06-11 14:02:28 +02:00
|
|
|
if (location == null) {
|
|
|
|
worldserver1 = this.server.getLevel(Level.OVERWORLD);
|
|
|
|
blockposition = entityplayer1.getSpawnPoint(worldserver1);
|
2023-05-12 13:10:08 +02:00
|
|
|
- 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
|
2021-06-11 14:02:28 +02:00
|
|
|
}
|
|
|
|
|
2021-06-20 21:25:59 +02:00
|
|
|
Player respawnPlayer = entityplayer1.getBukkitEntity();
|