Fix #739
This commit is contained in:
parent
54040e14a1
commit
669da87e81
2
docs
2
docs
@ -1 +1 @@
|
||||
Subproject commit dfec70a8c5a6a6eca9e9d47e582141bc8a86aba8
|
||||
Subproject commit ba3fed54b3e8cb9c4d95b6729c15aec2fce066d5
|
@ -188,7 +188,7 @@ class CombinedAPI
|
||||
if ($method === 'onLoop') {
|
||||
$this->loop_callback = [$this->event_handler_instance, 'onLoop'];
|
||||
} elseif ($method === 'onAny') {
|
||||
foreach (\end($this->instances)->API->constructors->by_id as $constructor) {
|
||||
foreach (\end($this->instances)->API->getTL()->getConstructors()->by_id as $constructor) {
|
||||
if ($constructor['type'] === 'Update' && !isset($this->event_handler_methods[$constructor['predicate']])) {
|
||||
$this->event_handler_methods[$constructor['predicate']] = [$this->event_handler_instance, 'onAny'];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user