mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
this shit has been bothering me for a month lol
This commit is contained in:
parent
553e48e4e9
commit
2d452feb87
@ -632,6 +632,12 @@ namespace NewHorizons.Builder.Props.TranslatorText
|
||||
xmlDocument.LoadXml(xmlPath);
|
||||
XmlNode rootNode = xmlDocument.SelectSingleNode("NomaiObject");
|
||||
|
||||
if (rootNode == null)
|
||||
{
|
||||
NHLogger.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