Merge pull request #40 from Chris92de/master
Fire callback CB_MAPQUEUE_CHANGED on /replay
This commit is contained in:
commit
8636902234
@ -223,8 +223,8 @@ class MapQueue implements CallbackListener, CommandListener {
|
|||||||
if (array_key_exists($map->uid, $this->queuedMaps)) {
|
if (array_key_exists($map->uid, $this->queuedMaps)) {
|
||||||
unset($this->queuedMaps[$map->uid]);
|
unset($this->queuedMaps[$map->uid]);
|
||||||
}
|
}
|
||||||
|
|
||||||
array_unshift($this->queuedMaps, array($player, $map, true));
|
array_unshift($this->queuedMaps, array($player, $map, true));
|
||||||
|
$this->maniaControl->callbackManager->triggerCallback(self::CB_MAPQUEUE_CHANGED, array('add', $map));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user