MC HOTFIX, UPDATE FAST!!!
This commit is contained in:
parent
07898d47f7
commit
7c5f8efdda
@ -578,6 +578,7 @@ class ManiaControl implements CallbackListener, CommandListener, TimerListener,
|
|||||||
|
|
||||||
// Load plugins
|
// Load plugins
|
||||||
$this->getPluginManager()->loadPlugins();
|
$this->getPluginManager()->loadPlugins();
|
||||||
|
|
||||||
$this->getUpdateManager()->getPluginUpdateManager()->checkPluginsUpdate();
|
$this->getUpdateManager()->getPluginUpdateManager()->checkPluginsUpdate();
|
||||||
|
|
||||||
// AfterInit callback
|
// AfterInit callback
|
||||||
|
@ -508,7 +508,7 @@ class MapManager implements CallbackListener, CommunicationListener, UsageInform
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
$offset = 0;
|
$offset = 0;
|
||||||
while ($this->maniaControl->getClient()) {
|
while ($this->maniaControl->getClient() && $offset < 5000) {
|
||||||
$maps = $this->maniaControl->getClient()->getMapList(150, $offset);
|
$maps = $this->maniaControl->getClient()->getMapList(150, $offset);
|
||||||
|
|
||||||
foreach ($maps as $rpcMap) {
|
foreach ($maps as $rpcMap) {
|
||||||
@ -524,6 +524,7 @@ class MapManager implements CallbackListener, CommunicationListener, UsageInform
|
|||||||
|
|
||||||
$offset += 150;
|
$offset += 150;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (IndexOutOfBoundException $e) {
|
} catch (IndexOutOfBoundException $e) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user