mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Use EnumTrait->equals() instead of direct comparison
It's not guaranteed that objects provided are the same as those in the enum registry, so they can't be directly compared. Implementing comparison with === would require some kind of __equals() implementation or an extension to hook into such functionality.
This commit is contained in:
@ -1554,7 +1554,7 @@ class Server{
|
||||
}
|
||||
}
|
||||
|
||||
if($type === PluginLoadOrder::POSTWORLD()){
|
||||
if($type->equals(PluginLoadOrder::POSTWORLD())){
|
||||
$this->commandMap->registerServerAliases();
|
||||
DefaultPermissions::registerCorePermissions();
|
||||
}
|
||||
|
Reference in New Issue
Block a user