Add a setting to disable ManiaExchange

This commit is contained in:
Beu
2023-08-14 17:11:09 +02:00
parent 129053e951
commit 0ad0d06f85
5 changed files with 62 additions and 8 deletions

View File

@ -140,6 +140,8 @@ class ManiaExchangeMapSearch implements UsageInformationAble {
* @param callable $function
*/
public function fetchMapsAsync(callable $function) {
if (!$this->maniaControl->getMapManager()->getMXManager()->getStatus()) return;
// compile search URL
$parameters = "";