added new exception
This commit is contained in:
parent
f83640179d
commit
8e664879d5
@ -37,7 +37,7 @@ use Maniaplanet\DedicatedServer\Xmlrpc\UnavailableFeatureException;
|
|||||||
*/
|
*/
|
||||||
class MapManager implements CallbackListener, CommunicationListener, UsageInformationAble {
|
class MapManager implements CallbackListener, CommunicationListener, UsageInformationAble {
|
||||||
use UsageInformationTrait;
|
use UsageInformationTrait;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
@ -455,8 +455,11 @@ class MapManager implements CallbackListener, CommunicationListener, UsageInform
|
|||||||
$this->maniaControl->getChat()->sendException($exception, $login);
|
$this->maniaControl->getChat()->sendException($exception, $login);
|
||||||
return;
|
return;
|
||||||
} catch (InvalidMapException $exception) {
|
} catch (InvalidMapException $exception) {
|
||||||
|
|
||||||
$this->maniaControl->getChat()->sendException($exception, $login);
|
$this->maniaControl->getChat()->sendException($exception, $login);
|
||||||
return;
|
if ($exception->getMessage() != 'Map lightmap is not up to date. (will still load for now)') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->updateFullMapList();
|
$this->updateFullMapList();
|
||||||
|
@ -63,6 +63,7 @@ class FaultException extends Exception {
|
|||||||
case 'Map not complete.':
|
case 'Map not complete.':
|
||||||
case 'Map corrupted.':
|
case 'Map corrupted.':
|
||||||
case 'Map lightmap is not up to date.':
|
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.':
|
case 'The map doesn\'t match the server packmask.':
|
||||||
return new InvalidMapException($faultString, $faultCode);
|
return new InvalidMapException($faultString, $faultCode);
|
||||||
case 'Ladder mode unknown.':
|
case 'Ladder mode unknown.':
|
||||||
|
Loading…
Reference in New Issue
Block a user