mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-28 14:19:53 +00:00
Fixed Events being called with reversed priority
This commit is contained in:
parent
abff932d8f
commit
f9353a0ecd
@ -23,7 +23,12 @@ namespace pocketmine\event;
|
||||
|
||||
|
||||
/**
|
||||
* List of event prioritoes
|
||||
* List of event priorities
|
||||
*
|
||||
* Events will be called in this order:
|
||||
* LOWEST -> LOW -> NORMAL -> HIGH -> HIGHEST -> MONITOR
|
||||
*
|
||||
* MONITOR events should not change the event outcome or contents
|
||||
*/
|
||||
abstract class EventPriority{
|
||||
/**
|
||||
|
@ -70,12 +70,12 @@ class HandlerList{
|
||||
|
||||
public function __construct(){
|
||||
$this->handlerSlots = array(
|
||||
EventPriority::MONITOR => [],
|
||||
EventPriority::HIGHEST => [],
|
||||
EventPriority::HIGH => [],
|
||||
EventPriority::NORMAL => [],
|
||||
EventPriority::LOWEST => [],
|
||||
EventPriority::LOW => [],
|
||||
EventPriority::LOWEST => []
|
||||
EventPriority::NORMAL => [],
|
||||
EventPriority::HIGH => [],
|
||||
EventPriority::HIGHEST => [],
|
||||
EventPriority::MONITOR => []
|
||||
);
|
||||
self::$allLists[] = $this;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user