lib.cheat.u改回兼容旧版传参2(但提示废弃)

This commit is contained in:
shijian 2023-12-29 20:20:48 +08:00
parent e28fac757a
commit 33f5942ffb
1 changed files with 1 additions and 1 deletions

View File

@ -8916,7 +8916,7 @@ export class Library extends Uninstantable {
}
else if (typeof args[i] == 'object' && args[i] != null && args[i].name) {
console.warn('lib.cheat.u: 以普通obj形式传入的类卡牌形式已经废弃');
card = args[i];
card = new lib.element.VCard(args[i]);
}
else if (typeof args[i] == 'string') {
card = new lib.element.VCard({ name: args[i] });