mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-05 02:22:12 +01:00
fixed cross world teleport
By: Tahg <tahgtahv@gmail.com>
This commit is contained in:
parent
900268f301
commit
d20f1b7bdc
1 changed files with 1 additions and 3 deletions
|
@ -173,10 +173,8 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
||||||
|
|
||||||
if (oldWorld != newWorld) {
|
if (oldWorld != newWorld) {
|
||||||
this.entity = manager.a(entity, newWorld.dimension, false);
|
this.entity = manager.a(entity, newWorld.dimension, false);
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return entity.netServerHandler.teleport(location);
|
|
||||||
}
|
}
|
||||||
|
return entity.netServerHandler.teleport(location);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSneaking(boolean sneak) {
|
public void setSneaking(boolean sneak) {
|
||||||
|
|
Loading…
Reference in a new issue