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:
@@ -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