mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-22 19:06:35 +00:00
thanks for being useless PhpStorm
This commit is contained in:
parent
34b8557094
commit
63fc04b3dd
@ -24,8 +24,8 @@ declare(strict_types=1);
|
|||||||
namespace pocketmine\event;
|
namespace pocketmine\event;
|
||||||
|
|
||||||
use pocketmine\plugin\Plugin;
|
use pocketmine\plugin\Plugin;
|
||||||
use pocketmine\plugin\PluginManager;
|
|
||||||
use pocketmine\plugin\RegisteredListener;
|
use pocketmine\plugin\RegisteredListener;
|
||||||
|
use pocketmine\utils\Utils;
|
||||||
|
|
||||||
class HandlerList{
|
class HandlerList{
|
||||||
/**
|
/**
|
||||||
@ -69,7 +69,7 @@ class HandlerList{
|
|||||||
}
|
}
|
||||||
|
|
||||||
$class = new \ReflectionClass($event);
|
$class = new \ReflectionClass($event);
|
||||||
$tags = PluginManager::parseDocComment((string) $class->getDocComment());
|
$tags = Utils::parseDocComment((string) $class->getDocComment());
|
||||||
|
|
||||||
if($class->isAbstract() && !isset($tags["allowHandle"])){
|
if($class->isAbstract() && !isset($tags["allowHandle"])){
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user