fix: bungee unregister error
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
parent
7cbd91826a
commit
b477938e4f
@ -96,8 +96,7 @@ export class BungeeEvent extends event.Event {
|
||||
let prioritiesMap = this.byListenerAndPriority.get(eventCls);
|
||||
if (prioritiesMap != null) {
|
||||
let bindings = reflect.on(listener).get("bindings").get();
|
||||
// Can't read hash map so need serialize and deserialize
|
||||
let priority = JSON.parse(JSON.stringify(bindings))["priority"];
|
||||
let priority = bindings["priority"];
|
||||
// Map<监听器, 方法[]>
|
||||
let currentPriorityMap = prioritiesMap.get(priority);
|
||||
if (currentPriorityMap != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user