fix: nukkit unregister event error
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
parent
3c55df03d8
commit
a2bce715f3
@ -42,6 +42,6 @@ export class NukkitEvent extends event.Event {
|
||||
return listener;
|
||||
}
|
||||
unregister(event: any, listener: any): void {
|
||||
event.getHandlers().unregister(listener);
|
||||
event.getMethod('getHandlers').invoke(null).unregister(listener);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user