mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 20:23:53 -07:00
fixed cross world teleport
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user