2021-06-11 14:02:28 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Steve Anton <anxuiz.nx@gmail.com>
|
|
|
|
Date: Thu, 3 Mar 2016 00:09:38 -0600
|
2024-06-14 23:07:44 +02:00
|
|
|
Subject: [PATCH] Fix spawn location event changing location
|
2021-06-11 14:02:28 +02:00
|
|
|
|
2022-11-20 00:53:20 +01:00
|
|
|
== AT ==
|
|
|
|
public net.minecraft.world.entity.Entity setRot(FF)V
|
|
|
|
|
2021-06-11 14:02:28 +02:00
|
|
|
diff --git a/src/main/java/net/minecraft/server/players/PlayerList.java b/src/main/java/net/minecraft/server/players/PlayerList.java
|
2024-10-22 20:04:31 +02:00
|
|
|
index b103d49458330be9f7fb3382c764b204a02a925a..2af4b853fde493c1fa5c8d530aae4d68b79f7ba0 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
|
2024-10-22 20:04:31 +02:00
|
|
|
@@ -235,7 +235,10 @@ public abstract class PlayerList {
|
2021-06-11 14:02:28 +02:00
|
|
|
|
2021-11-23 13:15:10 +01:00
|
|
|
player.spawnIn(worldserver1);
|
2023-06-07 20:31:32 +02:00
|
|
|
player.gameMode.setLevel((ServerLevel) player.level());
|
2021-06-11 14:02:28 +02:00
|
|
|
- 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());
|
2024-01-23 14:34:17 +01:00
|
|
|
+ // Paper end - set raw so we aren't fully joined to the world
|
2021-06-11 14:02:28 +02:00
|
|
|
// Spigot end
|
|
|
|
|
|
|
|
// CraftBukkit - Moved message to after join
|