give time for extension to add hook.
This commit is contained in:
parent
a9d10ba774
commit
805848568d
10
game/game.js
10
game/game.js
|
@ -32241,11 +32241,13 @@
|
||||||
lib.group.add(id);
|
lib.group.add(id);
|
||||||
if(short)lib.translate[id] = short;
|
if(short)lib.translate[id] = short;
|
||||||
if(name)lib.translate[`${id}2`] = name;
|
if(name)lib.translate[`${id}2`] = name;
|
||||||
for(const hook of lib.hooks.addGroup){
|
lib.onload.add(()=>{
|
||||||
if(hook!=null&&typeof hook=="function"){
|
for(const hook of lib.hooks.addGroup){
|
||||||
hook(id,short,name,config);
|
if(hook!=null&&typeof hook=="function"){
|
||||||
|
hook(id,short,name,config);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
return id;
|
return id;
|
||||||
},
|
},
|
||||||
//Yingbian
|
//Yingbian
|
||||||
|
|
Loading…
Reference in New Issue