aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0053-Fix-spawn-location-event-changing-location.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0053-Fix-spawn-location-event-changing-location.patch')
-rw-r--r--patches/server/0053-Fix-spawn-location-event-changing-location.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/patches/server/0053-Fix-spawn-location-event-changing-location.patch b/patches/server/0053-Fix-spawn-location-event-changing-location.patch
new file mode 100644
index 0000000000..e9256b2783
--- /dev/null
+++ b/patches/server/0053-Fix-spawn-location-event-changing-location.patch
@@ -0,0 +1,24 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Steve Anton <[email protected]>
+Date: Thu, 3 Mar 2016 00:09:38 -0600
+Subject: [PATCH] Fix spawn location event changing location
+
+== AT ==
+public net.minecraft.world.entity.Entity setRot(FF)V
+
+diff --git a/src/main/java/net/minecraft/server/players/PlayerList.java b/src/main/java/net/minecraft/server/players/PlayerList.java
+index 765c412cd0c5cd410c224b4bc55dbf431fd6617b..8a91a44e46a2d49e2f4b9e9970c2b77f2e87767e 100644
+--- a/src/main/java/net/minecraft/server/players/PlayerList.java
++++ b/src/main/java/net/minecraft/server/players/PlayerList.java
+@@ -234,7 +234,10 @@ public abstract class PlayerList {
+
+ player.spawnIn(worldserver1);
+ player.gameMode.setLevel((ServerLevel) player.level());
+- player.absMoveTo(loc.getX(), loc.getY(), loc.getZ(), loc.getYaw(), loc.getPitch());
++ // Paper start - set raw so we aren't fully joined to the world (not added to chunk or world)
++ player.setPosRaw(loc.getX(), loc.getY(), loc.getZ());
++ player.setRot(loc.getYaw(), loc.getPitch());
++ // Paper end - set raw so we aren't fully joined to the world
+ // Spigot end
+
+ // CraftBukkit - Moved message to after join