Guard browser shared tool-table result helper
This commit is contained in:
@@ -4619,11 +4619,15 @@
|
||||
];
|
||||
}
|
||||
|
||||
function toolTableResultLines(tools) {
|
||||
return tools.flatMap((tool) => tool.resultLines);
|
||||
}
|
||||
|
||||
function directToolTableResultLines(operation, tools, extraLines = []) {
|
||||
return [
|
||||
`tooldata_${operation}=0`,
|
||||
...extraLines,
|
||||
...tools.flatMap((tool) => tool.resultLines),
|
||||
...toolTableResultLines(tools),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -4644,7 +4648,7 @@
|
||||
return [
|
||||
...(operation === "load" ? ["tooldata_random_toolchanger=1"] : []),
|
||||
`tooldata_${operation}=0`,
|
||||
...tools.flatMap((tool) => tool.resultLines),
|
||||
...toolTableResultLines(tools),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user