mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-28 22:30:01 +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{
|
abstract class EventPriority{
|
||||||
/**
|
/**
|
||||||
|
@ -70,12 +70,12 @@ class HandlerList{
|
|||||||
|
|
||||||
public function __construct(){
|
public function __construct(){
|
||||||
$this->handlerSlots = array(
|
$this->handlerSlots = array(
|
||||||
EventPriority::MONITOR => [],
|
EventPriority::LOWEST => [],
|
||||||
EventPriority::HIGHEST => [],
|
|
||||||
EventPriority::HIGH => [],
|
|
||||||
EventPriority::NORMAL => [],
|
|
||||||
EventPriority::LOW => [],
|
EventPriority::LOW => [],
|
||||||
EventPriority::LOWEST => []
|
EventPriority::NORMAL => [],
|
||||||
|
EventPriority::HIGH => [],
|
||||||
|
EventPriority::HIGHEST => [],
|
||||||
|
EventPriority::MONITOR => []
|
||||||
);
|
);
|
||||||
self::$allLists[] = $this;
|
self::$allLists[] = $this;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user