From ed611433c1b5970840ee479218bb451e49504e94 Mon Sep 17 00:00:00 2001 From: Rintim Date: Fri, 8 Sep 2023 02:08:54 +0800 Subject: [PATCH] purifid --- game/game.js | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/game/game.js b/game/game.js index 787fee50a..5c8ae758e 100644 --- a/game/game.js +++ b/game/game.js @@ -7264,24 +7264,35 @@ }, comparator:{ e:function(){ - if(arguments.length<=1) return true; + if(arguments.length==0) return false; + if(arguments.length==1) return true; for(let i=1;i{ if(!id) throw new TypeError(); - if(short!=null&&typeof short=="object"){ + if(lib.comparator.te(short,"object")){ config=short; short=null; } - if(name!=null&&typeof name=="object"){ + if(lib.comparator.te(name,"object")){ config=name; name=null; } - if((name==null||typeof name!="string")&&short){ + if(!lib.comparator.te(short,"string")&&short){ name=short; } lib.group.add(id);