Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 20:40:08 +01:00
Added missing CraftBukkit comments in previous commit.
Dieser Commit ist enthalten in:
Ursprung
322330e942
Commit
14754c71a2
@ -925,10 +925,12 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
|
|||||||
|
|
||||||
public void a(Packet9Respawn packet9respawn) {
|
public void a(Packet9Respawn packet9respawn) {
|
||||||
if (this.player.j) {
|
if (this.player.j) {
|
||||||
|
// CraftBukkit start
|
||||||
CraftWorld cworld = (CraftWorld) this.server.getWorlds().get(0);
|
CraftWorld cworld = (CraftWorld) this.server.getWorlds().get(0);
|
||||||
ChunkCoordinates chunkcoordinates = cworld.getHandle().getSpawn();
|
ChunkCoordinates chunkcoordinates = cworld.getHandle().getSpawn();
|
||||||
Location location = new Location(cworld, chunkcoordinates.x + 0.5, chunkcoordinates.y, chunkcoordinates.z + 0.5);
|
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);
|
this.player = this.minecraftServer.serverConfigurationManager.moveToWorld(this.player, 0, true, location);
|
||||||
|
// CraftBukkit end
|
||||||
} else {
|
} else {
|
||||||
if (this.player.getHealth() > 0) {
|
if (this.player.getHealth() > 0) {
|
||||||
return;
|
return;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren