Created
May 6, 2021 16:03
-
-
Save notfood/16131f8a9dcfdd2fe781179773595589 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<Patch> | |
<!-- Add inspectorTabs if there are no inspectorTabs yet. --> | |
<!-- Add ResearchInfo.RI_ITab either way --> | |
<Operation Class="PatchOperationConditional"> | |
<xpath>/Defs/ThingDef[thingClass="Building_ResearchBench"]/inspectorTabs</xpath> | |
<nomatch Class="PatchOperationAdd"> | |
<xpath>/Defs/ThingDef[thingClass="Building_ResearchBench"]</xpath> | |
<value> | |
<inspectorTabs> | |
<li>ResearchInfo.RI_ITab</li> | |
</inspectorTabs> | |
</value> | |
</nomatch> | |
<match Class="PatchOperationAdd"> | |
<xpath>/Defs/ThingDef[thingClass="Building_ResearchBench"]/inspectorTabs</xpath> | |
<value> | |
<li>ResearchInfo.RI_ITab</li> | |
</value> | |
</match> | |
</Operation> | |
</Patch> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment