Hello. While testing compatibility between Planet DPS and Castra Prime, I found an issue where all recipes available in Planet DPS’s Armory building disappear.
I believe this happens because Castra Prime overwrites the entire categories field while modifying recipe categories for the Forge. To avoid compatibility issues with other mods, it should first check whether categories is nil, then insert the new category with table.insert. Planet DPS modifies recipe categories as follows:
if r.categories == nil then
r.categories = { "crafting", "dps-recipe-category_armory" }
else
table.insert(r.categories, "dps-recipe-category_armory")
end
It seems that Castra Prime’s code should be updated in the same way.