small fix

This commit is contained in:
kremsy 2014-01-25 23:33:39 +01:00 committed by Steffen Schröder
parent a1d0bd21b0
commit 849f0d468f

View File

@ -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:
$this->maniaControl->client->jumpToMapIndex($mapId); try {
$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];