geforkt von Mirrors/Paper
Portal changes.
By: Tahg <tahgtahv@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
6d2aad732e
Commit
e48a127bc2
@ -170,12 +170,13 @@ 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 && successfulTeleport) {
|
||||
this.entity = manager.a(entity, newWorld.dimension, false);
|
||||
if (oldWorld != newWorld) {
|
||||
manager.a(entity, newWorld.dimension, location);
|
||||
return true; //best guess
|
||||
} else {
|
||||
return entity.netServerHandler.teleport(location);
|
||||
}
|
||||
return successfulTeleport;
|
||||
}
|
||||
|
||||
public void setSneaking(boolean sneak) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren