Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-16 21:10:17 +01:00
Possible fix for some chunk loading issues experienced when teleporting. Thanks akrieger!
Dieser Commit ist enthalten in:
Ursprung
7499e2e0df
Commit
891dfbcef8
@ -170,11 +170,12 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
||||
WorldServer newWorld = ((CraftWorld)location.getWorld()).getHandle();
|
||||
ServerConfigurationManager manager = server.getHandle();
|
||||
EntityPlayer entity = getHandle();
|
||||
boolean successfulTeleport = entity.netServerHandler.teleport(location);
|
||||
|
||||
if (oldWorld != newWorld) {
|
||||
if (oldWorld != newWorld && successfulTeleport) {
|
||||
this.entity = manager.a(entity, newWorld.dimension, false);
|
||||
}
|
||||
return entity.netServerHandler.teleport(location);
|
||||
return successfulTeleport;
|
||||
}
|
||||
|
||||
public void setSneaking(boolean sneak) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren