Fix issue with some modifiers not loading after loading session

pull/14/head
Flashfyre 2024-01-01 00:00:44 -05:00
parent bbf42f28fb
commit 6941e6bdce
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ export default class ModifierData {
this.typePregenArgs = (source.type as GeneratedPersistentModifierType).getPregenArgs(); this.typePregenArgs = (source.type as GeneratedPersistentModifierType).getPregenArgs();
} else if (source.typePregenArgs) } else if (source.typePregenArgs)
this.typePregenArgs = source.typePregenArgs; this.typePregenArgs = source.typePregenArgs;
this.args = sourceModifier ? sourceModifier.getArgs() : source.args; this.args = sourceModifier ? sourceModifier.getArgs() : source.args || [];
this.stackCount = source.stackCount; this.stackCount = source.stackCount;
this.className = sourceModifier ? sourceModifier.constructor.name : source.className; this.className = sourceModifier ? sourceModifier.constructor.name : source.className;
} }