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
@ -717,6 +717,12 @@ namespace NewHorizons.Builder.Props
|
||||
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"))
|
||||
{
|
||||
XmlNode xmlNode = (XmlNode)obj;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user