From 7dd834bca004241a3a4ab812edd6fb7053b27bd9 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 15 Feb 2018 21:45:46 +0000 Subject: [PATCH] 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. --- src/pocketmine/plugin/PluginManager.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pocketmine/plugin/PluginManager.php b/src/pocketmine/plugin/PluginManager.php index 2f042d35a..04884f72d 100644 --- a/src/pocketmine/plugin/PluginManager.php +++ b/src/pocketmine/plugin/PluginManager.php @@ -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;