mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-28 13:36:16 +01:00
fixed cross world teleport
This commit is contained in:
parent
66109d6e57
commit
ebc478388c
@ -173,10 +173,8 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
||||
|
||||
if (oldWorld != newWorld) {
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user