unite arguments length between prototype function and its hook.

This commit is contained in:
Rintim 2023-09-26 23:58:05 +08:00
parent 18516597bf
commit 6aa4e18982
1 changed files with 2 additions and 2 deletions

View File

@ -266,7 +266,7 @@
});
}],
//增加新属性杀
addNature:[(nature,config)=>{
addNature:[(nature,_translation,config)=>{
if(typeof config!='object') config={};
let linked=config.linked,order=config.order,background=config.background,lineColor=config.lineColor;
if(typeof linked!='boolean') linked=true;
@ -33429,7 +33429,7 @@
lib.onload.add(()=>{
for(const hook of lib.hooks.addNature){
if(hook!=null&&typeof hook=="function"){
hook(nature,config);
hook(nature,translation,config);
}
}
})