mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-30 14:33:56 +01:00
When leaving the end, always target the main world. Fixes BUKKIT-3517
This commit is contained in:
parent
b0e43c8097
commit
0576395ddd
@ -441,7 +441,9 @@ public abstract class PlayerList {
|
||||
if ((cause == TeleportCause.END_PORTAL) && (i == 0)) {
|
||||
// THE_END -> NORMAL; use bed if available, otherwise default spawn
|
||||
exit = ((CraftPlayer) entityplayer.getBukkitEntity()).getBedSpawnLocation();
|
||||
if (exit == null) exit = exitWorld.getWorld().getSpawnLocation();
|
||||
if (exit == null || ((CraftWorld) exit.getWorld()).getHandle().dimension != 0) {
|
||||
exit = exitWorld.getWorld().getSpawnLocation();
|
||||
}
|
||||
} else {
|
||||
// NORMAL <-> NETHER or NORMAL -> THE_END
|
||||
exit = this.calculateTarget(enter, exitWorld);
|
||||
|
Loading…
Reference in New Issue
Block a user