mirror of
https://github.com/YatopiaMC/Yatopia.git
synced 2024-11-05 18:33:22 +01:00
e37628ad1e
Fixes an issue with limits being ignored with per player spawning Fixes an issue where you would be respawned south no matter the rotation of your spawn point. Additionally, removed Producer#fillList(Producer, List) from the collisions patch and moved it where it is first used. That's a misc maintainability change, but we have to be consistent!
20 lines
1.2 KiB
Diff
20 lines
1.2 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Ivan Pekov <ivan@mrivanplays.com>
|
|
Date: Mon, 28 Sep 2020 16:23:11 +0300
|
|
Subject: [PATCH] Respect rotation when respawning
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/PlayerList.java b/src/main/java/net/minecraft/server/PlayerList.java
|
|
index 25186df83c41ae168bca30b28149005f4b9f45e9..95cd25230601d22f02a31667b048bfd1ecda6009 100644
|
|
--- a/src/main/java/net/minecraft/server/PlayerList.java
|
|
+++ b/src/main/java/net/minecraft/server/PlayerList.java
|
|
@@ -812,7 +812,7 @@ public abstract class PlayerList {
|
|
entityplayer1.setRespawnPosition(worldserver1.getDimensionKey(), blockposition, f, flag1, false);
|
|
flag2 = !flag && flag3;
|
|
isBedSpawn = true;
|
|
- location = new Location(worldserver1.getWorld(), vec3d.x, vec3d.y, vec3d.z);
|
|
+ location = new Location(worldserver1.getWorld(), vec3d.x, vec3d.y, vec3d.z, f1, 0.0F); // Yatopia - respect rotation
|
|
} else if (blockposition != null) {
|
|
entityplayer1.playerConnection.sendPacket(new PacketPlayOutGameStateChange(PacketPlayOutGameStateChange.a, 0.0F));
|
|
}
|