mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-20 10:24:07 +00:00
Fix HandlerList.php wrong var name
This commit is contained in:
parent
5a8e6619e9
commit
b18783a0e7
@ -125,8 +125,8 @@ class HandlerList{
|
||||
$this->handlers = null;
|
||||
}
|
||||
}elseif($object instanceof RegisteredListener){
|
||||
if(isset($this->handlerSlots[$object->getPriority()][spl_object_hash($listener)])){
|
||||
unset($this->handlerSlots[$object->getPriority()][spl_object_hash($listener)]);
|
||||
if(isset($this->handlerSlots[$object->getPriority()][spl_object_hash($object)])){
|
||||
unset($this->handlerSlots[$object->getPriority()][spl_object_hash($object)]);
|
||||
$this->handlers = null;
|
||||
}
|
||||
}
|
||||
@ -176,4 +176,4 @@ class HandlerList{
|
||||
return self::$allLists;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user