Fix y = 0 teleport bug
This commit is contained in:
parent
c9624712da
commit
fc011dcbaf
@ -90,6 +90,11 @@ public class ProcessSyncPlayerLogin implements SynchronousProcess {
|
|||||||
}
|
}
|
||||||
|
|
||||||
final PlayerAuth auth = playerCache.getAuth(name);
|
final PlayerAuth auth = playerCache.getAuth(name);
|
||||||
|
|
||||||
|
if (isFirstLogin) { // Save quit location before login teleport
|
||||||
|
auth.setQuitLocation(player.getLocation());
|
||||||
|
}
|
||||||
|
|
||||||
teleportationService.teleportOnLogin(player, auth, limbo);
|
teleportationService.teleportOnLogin(player, auth, limbo);
|
||||||
|
|
||||||
// We can now display the join message (if delayed)
|
// We can now display the join message (if delayed)
|
||||||
|
|||||||
@ -140,7 +140,7 @@ public class TeleportationService implements Reloadable {
|
|||||||
logger.debug("Teleporting `{0}` to spawn because of 'force-spawn after login'", player.getName());
|
logger.debug("Teleporting `{0}` to spawn because of 'force-spawn after login'", player.getName());
|
||||||
teleportToSpawn(player, true);
|
teleportToSpawn(player, true);
|
||||||
} else if (settings.getProperty(TELEPORT_UNAUTHED_TO_SPAWN)) {
|
} else if (settings.getProperty(TELEPORT_UNAUTHED_TO_SPAWN)) {
|
||||||
if (settings.getProperty(RestrictionSettings.SAVE_QUIT_LOCATION) && auth.getQuitLocY() != 0) {
|
if (settings.getProperty(RestrictionSettings.SAVE_QUIT_LOCATION)) {
|
||||||
Location location = buildLocationFromAuth(player, auth);
|
Location location = buildLocationFromAuth(player, auth);
|
||||||
logger.debug("Teleporting `{0}` after login, based on the player auth", player.getName());
|
logger.debug("Teleporting `{0}` after login, based on the player auth", player.getName());
|
||||||
teleportBackFromSpawn(player, location);
|
teleportBackFromSpawn(player, location);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user