SPIGOT-3845: Fix spawnRadius on respawn

Thanks senmori for the investigation in PR #431
This commit is contained in:
md_5
2018-03-07 21:43:33 +11:00
parent 3a482bdd40
commit 7e94e65a1c
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));
}
+