fix: xml patch now applies correctly
This commit is contained in:
parent
f21eb3bbf2
commit
e7f4a9ed3e
1 changed files with 6 additions and 8 deletions
|
@ -13,14 +13,12 @@ You should have received a copy of the GNU General Public License along with "Ta
|
||||||
<Patch>
|
<Patch>
|
||||||
<Operation Class="PatchOperationSequence">
|
<Operation Class="PatchOperationSequence">
|
||||||
<operations>
|
<operations>
|
||||||
<li Class="PatchOperationConditional">
|
<li Class="PatchOperationAdd">
|
||||||
<xpath>Defs/ThingDef[surfaceType="Eat"]/comps</xpath>
|
<success>Always</success>
|
||||||
<nomatch Class="PatchOperationAdd">
|
<xpath>Defs/ThingDef[surfaceType="Eat" and not(comps)]</xpath>
|
||||||
<xpath>Defs/ThingDef[surfaceType="Eat"]</xpath>
|
|
||||||
<value>
|
<value>
|
||||||
<comps />
|
<comps />
|
||||||
</value>
|
</value>
|
||||||
</nomatch>
|
|
||||||
</li>
|
</li>
|
||||||
<li Class="PatchOperationConditional">
|
<li Class="PatchOperationConditional">
|
||||||
<xpath>Defs/ThingDef[surfaceType="Eat"]/comps/li[compClass="TableToggle.EatableComp"]</xpath>
|
<xpath>Defs/ThingDef[surfaceType="Eat"]/comps/li[compClass="TableToggle.EatableComp"]</xpath>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue