1
0
Fork 0

get stack name using current settings rather than all settings

This commit is contained in:
Enoch Riese 2023-01-07 15:14:32 -06:00
parent c41bc25953
commit 6bdaa460aa

View file

@ -1157,7 +1157,7 @@ Pattern.prototype.__pack = function () {
for (const [name, part] of Object.entries(this.parts[set])) {
const stackName =
this.settings[set].stackPrefix +
(typeof part.stack === 'function' ? part.stack(this.settings, name) : part.stack)
(typeof part.stack === 'function' ? part.stack(this.settings[set], name) : part.stack)
if (typeof this.stacks[stackName] === 'undefined')
this.stacks[stackName] = this.__createStackWithContext(stackName, set)
this.stacks[stackName].addPart(part)