mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-06 07:02:18 -07:00
SPIGOT-3845: Fix spawnRadius on respawn
Thanks senmori for the investigation in PR #431
This commit is contained in:
@@ -484,7 +484,7 @@
|
||||
+
|
||||
+ if (location == null) {
|
||||
+ cworld = (CraftWorld) this.server.server.getWorlds().get(0);
|
||||
+ blockposition = cworld.getHandle().getSpawn();
|
||||
+ blockposition = entityplayer1.getSpawnPoint(this.server, cworld.getHandle());
|
||||
+ location = new Location(cworld, (double) ((float) blockposition.getX() + 0.5F), (double) ((float) blockposition.getY() + 0.1F), (double) ((float) blockposition.getZ() + 0.5F));
|
||||
}
|
||||
+
|
||||
|
Reference in New Issue
Block a user