Content Patcher

Content Patcher

463k Downloads

[Content Patcher] 1.3 alpha: language token incorrectly validated with multiple conditions

Pathoschild opened this issue ยท 1 comments

commented

Reported by Lita: when a patch has multiple conditions (e.g. language + config), Content Patcher incorrectly checks {{language}} FromFile tokens against all languages instead of the listed ones.

See:

commented

The problem is in the content.json:

"When": {
    "Language": "en, pt"
},
"When": {
    "Oak Trees": "pink"
},

When you define the same field twice, only the second one applies. It should work fine with this instead:

"When": {
    "Language": "en, pt",
    "Oak Trees": "pink"
},