Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-20 13:30:05 +01:00
Fix crash with disabled worlds
Dieser Commit ist enthalten in:
Ursprung
de42aa13f3
Commit
4633e6c5c7
@ -355,20 +355,18 @@
|
|||||||
this.decouple();
|
this.decouple();
|
||||||
this.getWorldServer().removePlayer(this);
|
this.getWorldServer().removePlayer(this);
|
||||||
if (!this.viewingCredits) {
|
if (!this.viewingCredits) {
|
||||||
@@ -503,10 +697,12 @@
|
@@ -503,8 +697,10 @@
|
||||||
} else {
|
} else {
|
||||||
WorldServer worldserver = this.server.getWorldServer(dimensionmanager1);
|
WorldServer worldserver = this.server.getWorldServer(dimensionmanager1);
|
||||||
|
|
||||||
- this.dimension = dimensionmanager;
|
- this.dimension = dimensionmanager;
|
||||||
+ // this.dimension = dimensionmanager; // CraftBukkit
|
+ // this.dimension = dimensionmanager; // CraftBukkit
|
||||||
WorldServer worldserver1 = this.server.getWorldServer(dimensionmanager);
|
WorldServer worldserver1 = this.server.getWorldServer(dimensionmanager);
|
||||||
WorldData worlddata = worldserver1.getWorldData();
|
|
||||||
|
|
||||||
+ // CraftBukkit start
|
+ // CraftBukkit start
|
||||||
+ /*
|
+ /*
|
||||||
|
WorldData worlddata = worldserver1.getWorldData();
|
||||||
|
|
||||||
this.playerConnection.sendPacket(new PacketPlayOutRespawn(dimensionmanager, WorldData.c(worlddata.getSeed()), worlddata.getType(), this.playerInteractManager.getGameMode()));
|
this.playerConnection.sendPacket(new PacketPlayOutRespawn(dimensionmanager, WorldData.c(worlddata.getSeed()), worlddata.getType(), this.playerInteractManager.getGameMode()));
|
||||||
this.playerConnection.sendPacket(new PacketPlayOutServerDifficulty(worlddata.getDifficulty(), worlddata.isDifficultyLocked()));
|
|
||||||
PlayerList playerlist = this.server.getPlayerList();
|
|
||||||
@@ -514,6 +710,8 @@
|
@@ -514,6 +710,8 @@
|
||||||
playerlist.d(this);
|
playerlist.d(this);
|
||||||
worldserver.removePlayer(this);
|
worldserver.removePlayer(this);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren