Sfoglia il codice sorgente

Fix ConfigWrapper sections

Bepis 7 anni fa
parent
commit
0acf245fec
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      BepInEx/ConfigWrapper.cs

+ 1 - 1
BepInEx/ConfigWrapper.cs

@@ -52,7 +52,7 @@ namespace BepInEx
             if (!Exists)
             if (!Exists)
                 return Default;
                 return Default;
 
 
-            var strVal = Config.GetEntry(Key, Section);
+            var strVal = Config.GetEntry(Key, null, Section);
             return (T)_converter.ConvertFrom(strVal);
             return (T)_converter.ConvertFrom(strVal);
         }
         }