Skip to content

Commit ab446b3

Browse files
fix Enums registering as references
1 parent a54f02b commit ab446b3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Code/ValueSystem/Value.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public static Value Parse(object obj, Script? script)
3232
decimal n => new NumberValue(n),
3333
string s when script is not null => new DynamicTextValue(s, script),
3434
string s => new StaticTextValue(s),
35+
Enum e => new StaticTextValue(e.ToString()),
3536
TimeSpan t => new DurationValue(t),
3637
Player p => new PlayerValue(p),
3738
IEnumerable<Player> ps => new PlayerValue(ps),

0 commit comments

Comments
 (0)