added new exception

This commit is contained in:
kremsy 2017-03-26 19:51:22 +02:00
parent f83640179d
commit 8e664879d5
2 changed files with 6 additions and 2 deletions

View File

@ -455,9 +455,12 @@ class MapManager implements CallbackListener, CommunicationListener, UsageInform
$this->maniaControl->getChat()->sendException($exception, $login);
return;
} catch (InvalidMapException $exception) {
$this->maniaControl->getChat()->sendException($exception, $login);
if ($exception->getMessage() != 'Map lightmap is not up to date. (will still load for now)') {
return;
}
}
$this->updateFullMapList();

View File

@ -63,6 +63,7 @@ class FaultException extends Exception {
case 'Map not complete.':
case 'Map corrupted.':
case 'Map lightmap is not up to date.':
case 'Map lightmap is not up to date. (will still load for now)':
case 'The map doesn\'t match the server packmask.':
return new InvalidMapException($faultString, $faultCode);
case 'Ladder mode unknown.':