mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Merge branch 'master' of https://github.com/kotyaralih/NostalgiaCore
This commit is contained in:
commit
4bf4a481a6
1 changed files with 2 additions and 1 deletions
|
|
@ -106,6 +106,7 @@ abstract class BaseEvent{
|
|||
static::$handlers[$identifier] = $handler;
|
||||
if(!isset(static::$handlerPriority[(int) $priority])){
|
||||
static::$handlerPriority[(int) $priority] = array();
|
||||
krsort(static::$handlerPriority);
|
||||
}
|
||||
static::$handlerPriority[(int) $priority][$identifier] = $handler;
|
||||
return true;
|
||||
|
|
@ -132,4 +133,4 @@ abstract class BaseEvent{
|
|||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue