diff --git a/CHANGELOG.md b/CHANGELOG.md index f27bb1d5..98318238 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Releases +## Version 3.0.91 [Hero System 6e (Unofficial) v2](https://github.com/dmdorman/hero6e-foundryvtt) + +- Fixed issue creating compendiums [#1172](https://github.com/dmdorman/hero6e-foundryvtt/issues/1172) + ## Version 3.0.90 [Hero System 6e (Unofficial) v2](https://github.com/dmdorman/hero6e-foundryvtt) - Added NOTES to item descriptions [#1140](https://github.com/dmdorman/hero6e-foundryvtt/issues/1140) diff --git a/module/item/item.mjs b/module/item/item.mjs index b64da46a..d5d3af99 100644 --- a/module/item/item.mjs +++ b/module/item/item.mjs @@ -1119,6 +1119,12 @@ export class HeroSystem6eItem extends Item { _postUploadDetails() { const item = this; + + // Make sure we have an actor (like when creating compendiums) + if (!item.actor) { + return; + } + // showToggle const itemEffects = item.effects.find(() => true); if (itemEffects) { diff --git a/system.json b/system.json index a4f7710a..424998ed 100644 --- a/system.json +++ b/system.json @@ -3,7 +3,7 @@ "name": "hero6e-foundryvtt-v2", "title": "Hero System 6e (Unofficial) v2", "description": "The Hero System 6e for FoundryVTT!", - "version": "3.0.90", + "version": "3.0.91", "compatibility": { "minimum": "11", "verified": "12.330",