Skip to content

Commit

Permalink
Migrate equippable consumables with equipped: undefined.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fyorl committed Jan 12, 2023
1 parent abeb9c9 commit b28a868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/data/item/templates/equippable-item.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ export default class EquippableItemTemplate extends foundry.abstract.DataModel {
* @param {object} source The candidate source data from which the model will be constructed.
*/
static #migrateEquipped(source) {
if ( source.equipped === null ) source.equipped = false;
if ( (source.equipped === null) || (source.equipped === undefined) ) source.equipped = false;
}
}

0 comments on commit b28a868

Please sign in to comment.