From 8e664879d58491e20583840f7c6f2970df1371f1 Mon Sep 17 00:00:00 2001 From: kremsy Date: Sun, 26 Mar 2017 19:51:22 +0200 Subject: [PATCH] added new exception --- core/Maps/MapManager.php | 7 +++++-- libs/Maniaplanet/DedicatedServer/Xmlrpc/FaultException.php | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/core/Maps/MapManager.php b/core/Maps/MapManager.php index cf331d33..2b36daa2 100644 --- a/core/Maps/MapManager.php +++ b/core/Maps/MapManager.php @@ -37,7 +37,7 @@ use Maniaplanet\DedicatedServer\Xmlrpc\UnavailableFeatureException; */ class MapManager implements CallbackListener, CommunicationListener, UsageInformationAble { use UsageInformationTrait; - + /* * Constants */ @@ -455,8 +455,11 @@ class MapManager implements CallbackListener, CommunicationListener, UsageInform $this->maniaControl->getChat()->sendException($exception, $login); return; } catch (InvalidMapException $exception) { + $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(); diff --git a/libs/Maniaplanet/DedicatedServer/Xmlrpc/FaultException.php b/libs/Maniaplanet/DedicatedServer/Xmlrpc/FaultException.php index a1bf7b68..f5924b6d 100755 --- a/libs/Maniaplanet/DedicatedServer/Xmlrpc/FaultException.php +++ b/libs/Maniaplanet/DedicatedServer/Xmlrpc/FaultException.php @@ -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.':