small fix
This commit is contained in:
parent
ff812b8126
commit
0b2a86a432
@ -427,7 +427,7 @@ class PluginUpdateManager implements CallbackListener, CommandListener, TimerLis
|
|||||||
$pluginUpdateData = new PluginUpdateData($pluginVersion);
|
$pluginUpdateData = new PluginUpdateData($pluginVersion);
|
||||||
$version = $pluginClass::getVersion();
|
$version = $pluginClass::getVersion();
|
||||||
|
|
||||||
if ($pluginUpdateData->isNewerThan($version) && $pluginUpdateData->minManiaControlVersion >= ManiaControl::VERSION) {
|
if ($pluginUpdateData->isNewerThan($version) && ($pluginUpdateData->maxManiaControlVersion == -1 || $pluginUpdateData->maxManiaControlVersion >= ManiaControl::VERSION)) {
|
||||||
return $pluginUpdateData;
|
return $pluginUpdateData;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user