mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
check for NomaiObject
This commit is contained in:
parent
d133cd4709
commit
53474c63c3
@ -716,6 +716,12 @@ namespace NewHorizons.Builder.Props
|
||||
XmlDocument xmlDocument = new XmlDocument();
|
||||
xmlDocument.LoadXml(xmlPath);
|
||||
XmlNode rootNode = xmlDocument.SelectSingleNode("NomaiObject");
|
||||
|
||||
if (rootNode == null)
|
||||
{
|
||||
Logger.LogError($"Couldn't find NomaiObject in [{xmlPath}]");
|
||||
return dict;
|
||||
}
|
||||
|
||||
foreach (object obj in rootNode.SelectNodes("TextBlock"))
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user