Skip to content

Commit 1e9a762

Browse files
fix some values not being read from databases
1 parent bf46576 commit 1e9a762

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

FileSystem/Structures/Database.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public readonly struct DatabaseValue(Type originalType, object value)
1717

1818
private static readonly JsonSerializerSettings Settings = new()
1919
{
20-
TypeNameHandling = TypeNameHandling.Arrays
20+
TypeNameHandling = TypeNameHandling.Auto
2121
};
2222

2323
private readonly string _path;
@@ -103,10 +103,10 @@ public TryGet<Value> Get(string key)
103103
{
104104
return err;
105105
}
106-
106+
107107
if (val.Value is null)
108108
{
109-
return $"Value of key '{key}' is not set.";
109+
return $"Value of key '{key}' cannot be read.";
110110
}
111111

112112
if (val.Type == typeof(PlayerValue).GetAccurateName())

0 commit comments

Comments
 (0)