Fire callback CB_MAPQUEUE_CHANGED on /replay

Needed this for to fix some weird behaviours "NextMap" widget in Plugin BWP\InfoWidgets and think it's useful for all plugin developers.
This commit is contained in:
Christopher F 2015-02-26 03:12:05 +01:00
parent 8011ce4adf
commit cadb414b27

View File

@ -223,8 +223,8 @@ class MapQueue implements CallbackListener, CommandListener {
if (array_key_exists($map->uid, $this->queuedMaps)) {
unset($this->queuedMaps[$map->uid]);
}
array_unshift($this->queuedMaps, array($player, $map, true));
$this->maniaControl->callbackManager->triggerCallback(self::CB_MAPQUEUE_CHANGED, array('add', $map));
}
}