diff --git a/bt/tasks/bt_task.cpp b/bt/tasks/bt_task.cpp index 4fa7ef19..818999b0 100644 --- a/bt/tasks/bt_task.cpp +++ b/bt/tasks/bt_task.cpp @@ -118,31 +118,31 @@ bool BTTask::is_displayed_collapsed() const { } String BTTask::get_task_name() { - if (data.custom_name.is_empty()) { -#ifdef LIMBOAI_MODULE - if (get_script_instance() && get_script_instance()->has_method(LW_NAME(_generate_name))) { - if (unlikely(!get_script_instance()->get_script()->is_tool())) { - ERR_PRINT(vformat("BTTask: Task script should be a \"tool\" script!")); - } else { - return get_script_instance()->call(LimboStringNames::get_singleton()->_generate_name); + if (!data.custom_name.is_empty()) { + return data.custom_name; + } + + Ref