diff --git a/data/vertex_module/particlesInit.lua b/data/vertex_module/particlesInit.lua index fcdcb96..21e401e 100644 --- a/data/vertex_module/particlesInit.lua +++ b/data/vertex_module/particlesInit.lua @@ -476,7 +476,7 @@ local animationFiles = { } for _, file in ipairs(animationFiles) do local doc = RapidXML.xml_document(file) - for node in Children(doc:first_node("FTL")) do + for node in Children(doc:first_node("FTL") or doc) do if node:name() == "particleType" then particleTypes:ParseNew(node) elseif node:name() == "particleEmitter" then diff --git a/data/vertex_module/xmlDataRead.lua b/data/vertex_module/xmlDataRead.lua index 7317863..ee0a7b4 100644 --- a/data/vertex_module/xmlDataRead.lua +++ b/data/vertex_module/xmlDataRead.lua @@ -14,8 +14,7 @@ local blueprintFiles = { -- Parse custom tags in blueprints and save them to tables for _, file in ipairs(blueprintFiles) do local doc = RapidXML.xml_document(file) - local parent = doc:first_node("FTL") - for node in Children(parent) do + for node in Children(doc:first_node("FTL") or doc) do if node:name() == "weaponBlueprint" then local thisWeaponInfo = {} local thisWeaponName = node:first_attribute("name"):value() diff --git a/mod-appendix/metadata.xml b/mod-appendix/metadata.xml index e07b4dc..1f50ecc 100644 --- a/mod-appendix/metadata.xml +++ b/mod-appendix/metadata.xml @@ -2,7 +2,7 @@ <![CDATA[ Vertex Tags and Utility Functions ]]> - +