small fix
This commit is contained in:
parent
a1d0bd21b0
commit
849f0d468f
@ -800,7 +800,12 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener {
|
|||||||
$this->showMapList($player);
|
$this->showMapList($player);
|
||||||
break;
|
break;
|
||||||
case self::ACTION_SWITCH_MAP:
|
case self::ACTION_SWITCH_MAP:
|
||||||
|
try {
|
||||||
$this->maniaControl->client->jumpToMapIndex($mapId);
|
$this->maniaControl->client->jumpToMapIndex($mapId);
|
||||||
|
} catch(\Exception $e) {
|
||||||
|
$this->maniaControl->chat->sendError("Error while Jumping to Map Index");
|
||||||
|
break;
|
||||||
|
}
|
||||||
$mapList = $this->maniaControl->mapManager->getMaps();
|
$mapList = $this->maniaControl->mapManager->getMaps();
|
||||||
$map = $mapList[$mapId];
|
$map = $mapList[$mapId];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user