This commit is contained in:
Daniil Gentili 2020-01-05 14:47:09 +01:00
parent 54040e14a1
commit 669da87e81
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 2 additions and 2 deletions

2
docs

@ -1 +1 @@
Subproject commit dfec70a8c5a6a6eca9e9d47e582141bc8a86aba8
Subproject commit ba3fed54b3e8cb9c4d95b6729c15aec2fce066d5

View File

@ -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'];
}