From 6941e6bdce77bcdfbc2170bb118e8c6c823188f1 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Mon, 1 Jan 2024 00:00:44 -0500 Subject: [PATCH] Fix issue with some modifiers not loading after loading session --- src/system/modifier-data.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/modifier-data.ts b/src/system/modifier-data.ts index be845f407..886230184 100644 --- a/src/system/modifier-data.ts +++ b/src/system/modifier-data.ts @@ -22,7 +22,7 @@ export default class ModifierData { this.typePregenArgs = (source.type as GeneratedPersistentModifierType).getPregenArgs(); } else if (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.className = sourceModifier ? sourceModifier.constructor.name : source.className; }