SPIGOT-3845: Fix spawnRadius on respawn

Thanks senmori for the investigation in PR #431

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2018-03-07 21:43:33 +11:00
parent d769b80901
commit 6c0f3574b1
2 changed files with 82 additions and 50 deletions

View File

@@ -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));
}
+