small fix
This commit is contained in:
parent
ff812b8126
commit
0b2a86a432
@ -426,8 +426,8 @@ class PluginUpdateManager implements CallbackListener, CommandListener, TimerLis
|
||||
}
|
||||
$pluginUpdateData = new PluginUpdateData($pluginVersion);
|
||||
$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 false;
|
||||
|
Loading…
Reference in New Issue
Block a user