// if there is an exit location
if (exit != null)
{
// if the player traveled too far through the void, kill them
if (player.getLocation().distance(exit) > SAFE_TRAVEL_DISTANCE)
apl.die(AutoRefPlayer.VOID_DEATH, true);
// reset exit location since player in region
apl.setExitLocation(null);
}
}