From 33cc10b6c14823ab220fee19dfda6412b61efc2c Mon Sep 17 00:00:00 2001 From: beu Date: Sun, 22 Jun 2025 19:38:50 +0200 Subject: [PATCH] fix non-blocking errors --- MatchManagerSuite/MatchManagerCore.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MatchManagerSuite/MatchManagerCore.php b/MatchManagerSuite/MatchManagerCore.php index 17ef857..3c3e8cf 100644 --- a/MatchManagerSuite/MatchManagerCore.php +++ b/MatchManagerSuite/MatchManagerCore.php @@ -1198,6 +1198,7 @@ class MatchManagerCore implements CallbackListener, CommandListener, TimerListen } // Define Gamemode + $scriptName = '-'; if ($this->currentsettingmode != 'All from file') { if (empty($this->maniaControl->getSettingManager()->getSettingValue($this, self::SETTING_MATCH_CUSTOM_GAMEMODE))) { $scriptName = "Trackmania/TM_" ; @@ -1304,7 +1305,7 @@ class MatchManagerCore implements CallbackListener, CommandListener, TimerListen $maplist = 'MatchSettings' . DIRECTORY_SEPARATOR . $this->maniaControl->getSettingManager()->getSettingValue($this, self::SETTING_MATCH_POST_MATCH_MAPLIST); if (is_file($this->maniaControl->getServer()->getDirectory()->getMapsFolder() . $maplist)) { $this->maniaControl->getClient()->loadMatchSettings($maplist); - } else { + } else if ($this->currentmap !== null) { if ($this->currentmap->mapType == "TrackMania\TM_Race") { $scriptname = "Trackmania/TM_TimeAttack_Online.Script.txt" ; } else if ($this->currentmap->mapType == "TrackMania\TM_Royal") { @@ -1414,7 +1415,7 @@ class MatchManagerCore implements CallbackListener, CommandListener, TimerListen $maplist = 'MatchSettings' . DIRECTORY_SEPARATOR . $this->maniaControl->getSettingManager()->getSettingValue($this, self::SETTING_MATCH_POST_MATCH_MAPLIST); if (is_file($this->maniaControl->getServer()->getDirectory()->getMapsFolder() . $maplist)) { $this->maniaControl->getClient()->loadMatchSettings($maplist); - } else { + } else if ($this->currentmap !== null) { if ($this->currentmap->mapType == "TrackMania\TM_Race") { $scriptname = "Trackmania/TM_TimeAttack_Online.Script.txt" ; } else if ($this->currentmap->mapType == "TrackMania\TM_Royal") {