mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-18 13:53:49 -07:00
Fixed spawn location offset.
This commit is contained in:
@@ -232,7 +232,7 @@ public class ServerConfigurationManager {
|
|||||||
if (location == null) {
|
if (location == null) {
|
||||||
cw = (CraftWorld) this.server.server.getWorlds().get(0);
|
cw = (CraftWorld) this.server.server.getWorlds().get(0);
|
||||||
chunkcoordinates = cw.getHandle().getSpawn();
|
chunkcoordinates = cw.getHandle().getSpawn();
|
||||||
location = new Location(cw, chunkcoordinates.x, chunkcoordinates.y, chunkcoordinates.z);
|
location = new Location(cw, chunkcoordinates.x + 0.5, chunkcoordinates.y, chunkcoordinates.z + 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
Player respawnPlayer = cserver.getPlayer(entityplayer);
|
Player respawnPlayer = cserver.getPlayer(entityplayer);
|
||||||
|
Reference in New Issue
Block a user