Server: fix possible comparison bug in load orders

This commit is contained in:
Dylan K. Taylor 2019-06-12 19:50:27 +01:00
parent 31f0576725
commit e95d81e04b

View File

@ -1542,7 +1542,7 @@ class Server{
*/
public function enablePlugins(PluginLoadOrder $type) : void{
foreach($this->pluginManager->getPlugins() as $plugin){
if(!$plugin->isEnabled() and $plugin->getDescription()->getOrder() === $type){
if(!$plugin->isEnabled() and $plugin->getDescription()->getOrder()->equals($type)){
$this->pluginManager->enablePlugin($plugin);
}
}