From e84a8b7a911100925926db1f95d2e1242d186ee7 Mon Sep 17 00:00:00 2001 From: jonthekiller Date: Sun, 2 Aug 2020 18:30:44 +0200 Subject: [PATCH] Quick Fix for TM2020 Quick fix for TM2020 but break compatibility with ManiaPlanet A better fix todo --- core/Callbacks/LibXmlRpcCallbacks.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/Callbacks/LibXmlRpcCallbacks.php b/core/Callbacks/LibXmlRpcCallbacks.php index 25cac830..26c16e59 100644 --- a/core/Callbacks/LibXmlRpcCallbacks.php +++ b/core/Callbacks/LibXmlRpcCallbacks.php @@ -60,14 +60,14 @@ class LibXmlRpcCallbacks implements CallbackListener { //No use for this Implementation right now (as the MapManager Callback should be used break; case 'Maniaplanet.StartMap_End': //Use the MapManager Callback - $jsonData = json_decode($data[0]); - $this->maniaControl->getMapManager()->handleScriptBeginMap($jsonData->map->uid, $jsonData->restarted); +// $jsonData = json_decode($data[0]); +// $this->maniaControl->getMapManager()->handleScriptBeginMap($jsonData->map->uid, $jsonData->restarted); break; case 'Maniaplanet.EndMap_Start': //no need for this implementation, callback handled by Map Manager break; case 'Maniaplanet.EndMap_End': //Use the MapManager Callback - $this->maniaControl->getMapManager()->handleScriptEndMap(); //Verify if better here or at EndMap_End +// $this->maniaControl->getMapManager()->handleScriptEndMap(); //Verify if better here or at EndMap_End break; }