6.7.0 - Alpha16 - 修复 dialog.build 选项参数属性名判定异常

This commit is contained in:
SuperMonster003
2026-01-18 23:13:14 +08:00
parent a6542d4c71
commit 3d7b50ec69

View File

@@ -706,8 +706,8 @@ class Dialogs(scriptRuntime: ScriptRuntime) : Augmentable(scriptRuntime) {
val targetMethodsForName = methods.filter {
it.name == key
}
require(targetMethodsForName.isNotEmpty()) {
"Method key \"$key\" for dialogs.build is not a valid method name"
if (targetMethodsForName.isEmpty()) {
return
}
val targetMethodsForParamCount = targetMethodsForName.filter {
it.parameterCount == argsForMethod.size