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