diff --git a/src/Luban.DataLoader.Builtin/DataVisitors/YamlDataCreator.cs b/src/Luban.DataLoader.Builtin/DataVisitors/YamlDataCreator.cs index 61a58ddb..d339afaf 100644 --- a/src/Luban.DataLoader.Builtin/DataVisitors/YamlDataCreator.cs +++ b/src/Luban.DataLoader.Builtin/DataVisitors/YamlDataCreator.cs @@ -23,7 +23,7 @@ private static string GetTextValue(YamlNode node) public DType Accept(TBool type, YamlNode x, DefAssembly y) { - return DBool.ValueOf(bool.Parse(GetLowerTextValue(x))); + return DBool.ValueOf(DataUtil.ParseBool(GetLowerTextValue(x))); } public DType Accept(TByte type, YamlNode x, DefAssembly y)