lilwhitemouse / RimWorld-LWM.DeepStorage

A mod for the game RimWorld that has a set of Deep Storage Units that allow storing more than one item at a location.
GNU General Public License v3.0
29 stars 36 forks source link

Update Compatibility_Dubs_Rimatomics.xml #157

Closed DomBarber closed 3 months ago

DomBarber commented 3 months ago

Description: This change fixes an issue with the compatibility patches for Dubs Bad Hygiene and Dubs Rimatomics.

Currently a hardcoded dependency exists where Deep Storage Rimatomics patch needs to run prior to the Deep Storage Hygiene patch (which has some conditional operations to deal with duplication).

Unfortunately, despite the load order being set appropriately, the Hygiene patch somehow executes first - resulting in the error XML error: Duplicate XML node name thingDefs in this XML block. (Both patches are trying to insert thingDefs into LWM_Pallet, but only Hygiene conditionally checks first to avoid duplication).

Log: https://gist.github.com/HugsLibRecordKeeper/8014f17275202ac0b3f99945627dbb94

In order to solve this problem, I've added a similar conditional statement as seen in the Hygiene patch to the Rimatomics patch, making it safe for either to run first.