Fixed API patch version being useless

Plugins will now be able to require a specific minimum patch version, in case they depend on bug fixes or whatever.
This commit is contained in:
Dylan K. Taylor 2018-02-15 21:45:46 +00:00
parent 2b6e135c83
commit 7dd834bca0

View File

@ -372,6 +372,10 @@ class PluginManager{
if($pluginNumbers[1] > $serverNumbers[1]){ //If the plugin requires new API features, being backwards compatible
continue;
}
if($pluginNumbers[2] > $serverNumbers[2]){ //If the plugin requires bug fixes in patches, being backwards compatible
continue;
}
}
return true;