menu improvement

This commit is contained in:
kremsy 2014-01-05 20:05:28 +01:00
parent 4ce717d73b
commit 24fa0863b7

View File

@ -324,15 +324,7 @@ class Configurator implements CallbackListener, CommandListener, ManialinkPageAn
$actionArray = explode(".", $callback[1][2]); $actionArray = explode(".", $callback[1][2]);
$player = $this->maniaControl->playerManager->getPlayer($login); $player = $this->maniaControl->playerManager->getPlayer($login);
$id = 0; $this->showMenu($player, intval($actionArray[2]));
foreach($this->menus as $menu) {
if($id == intval($actionArray[2])) {
$this->showMenu($player, $id);
}
$id++;
}
} }
/** /**