mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-03 06:40:19 +08:00
Added missing CraftBukkit comments in previous commit.
This commit is contained in:
parent
322330e942
commit
14754c71a2
@ -925,10 +925,12 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
|
||||
|
||||
public void a(Packet9Respawn packet9respawn) {
|
||||
if (this.player.j) {
|
||||
// CraftBukkit start
|
||||
CraftWorld cworld = (CraftWorld) this.server.getWorlds().get(0);
|
||||
ChunkCoordinates chunkcoordinates = cworld.getHandle().getSpawn();
|
||||
Location location = new Location(cworld, chunkcoordinates.x + 0.5, chunkcoordinates.y, chunkcoordinates.z + 0.5);
|
||||
this.player = this.minecraftServer.serverConfigurationManager.moveToWorld(this.player, 0, true, location);
|
||||
// CraftBukkit end
|
||||
} else {
|
||||
if (this.player.getHealth() > 0) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user