mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +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(),
|
ConvertToString = (obj, type) => obj.ToString().ToLowerInvariant(),
|
||||||
ConvertToObject = (str, type) => bool.Parse(str)
|
ConvertToObject = (str, type) => bool.Parse(str)
|
||||||
},
|
},
|
||||||
[typeof(byte)] = new TypeConverter
|
|
||||||
{
|
|
||||||
ConvertToString = (obj, type) => obj.ToString(),
|
|
||||||
ConvertToObject = (str, type) => byte.Parse(str)
|
|
||||||
},
|
|
||||||
|
|
||||||
//integral types
|
//integral types
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user