Skip to content

Commit 20e3008

Browse files
Tosoks67Elektryk-Andrzej
authored andcommitted
reading text in databases fix
1 parent 2ad0276 commit 20e3008

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Code/FileSystem/Structures/Database.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public Result TrySet(string key, Value value, bool save = true)
8282
return $"Value '{value}' cannot be stored in databases";
8383
}
8484

85-
_db[key] = new(value.GetType(), saveVal);
85+
_db[key] = new(value is DynamicTextValue ? typeof(StaticTextValue) : value.GetType(), saveVal);
8686
if (save) Save();
8787
return true;
8888
}

0 commit comments

Comments
 (0)