13
0
geforkt von Mirrors/Paper

When leaving the end, always target the main world. Fixes BUKKIT-3517

Dieser Commit ist enthalten in:
feildmaster 2013-01-29 09:36:56 -06:00
Ursprung b0e43c8097
Commit 0576395ddd

Datei anzeigen

@ -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);