mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
HandlerList: remove unnecessary variable
This commit is contained in:
@ -141,8 +141,7 @@ class HandlerList{
|
||||
|
||||
//TODO: why on earth do the priorities have higher values for lower priority?
|
||||
krsort($listenersByPriority, SORT_NUMERIC);
|
||||
$listeners = array_merge(...$listenersByPriority);
|
||||
|
||||
return $this->handlerCache->list = $listeners;
|
||||
return $this->handlerCache->list = array_merge(...$listenersByPriority);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user