mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-28 06:09:57 +00:00
Server: fix possible comparison bug in load orders
This commit is contained in:
parent
31f0576725
commit
e95d81e04b
@ -1542,7 +1542,7 @@ class Server{
|
|||||||
*/
|
*/
|
||||||
public function enablePlugins(PluginLoadOrder $type) : void{
|
public function enablePlugins(PluginLoadOrder $type) : void{
|
||||||
foreach($this->pluginManager->getPlugins() as $plugin){
|
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);
|
$this->pluginManager->enablePlugin($plugin);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user