mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-19 15:51:45 +00:00
Remove the duplicate byte TomlTypeConverter registration (#1359)
typeof(byte) was registered twice in the TypeConverters initializer; the second entry silently overwrote the first. Keep the one grouped with the other integral types.
This commit is contained in:
1 parent
5f39645992
commit
32fb12f2e9
1 file changed
-5
@@ -31,11 +31,6 @@ public static class TomlTypeConverter
|
||||
ConvertToString = (obj, type) => obj.ToString().ToLowerInvariant(),
|
||||
ConvertToObject = (str, type) => bool.Parse(str)
|
||||
},
|
||||
[typeof(byte)] = new TypeConverter
|
||||
{
|
||||
ConvertToString = (obj, type) => obj.ToString(),
|
||||
ConvertToObject = (str, type) => byte.Parse(str)
|
||||
},
|
||||
|
||||
//integral types
|
||||
|
||||
|
||||
Reference in new issue
Block a user