From d167fd2c6785ea35f92ab52a3a96a77005aae990 Mon Sep 17 00:00:00 2001 From: Blair Date: Wed, 26 Jun 2024 08:36:23 +1000 Subject: [PATCH] v2.7.13 - Fix bug introduced in v2.7.12 relating to v12 changes which would prevent certain imports from completing successfully. --- CHANGELOG.md | 3 +++ module.json | 2 +- scripts/scene-packer.js | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eb31797..084d0c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## v2.7.13 +- Fix bug introduced in v2.7.12 relating to v12 changes which would prevent certain imports from completing successfully. + ## v2.7.12 - Marked compatibility with Foundry VTT version 12. - The only changes were relating to deprecated methods that are currently in compatibility mode. diff --git a/module.json b/module.json index 69930e7..e9757c8 100644 --- a/module.json +++ b/module.json @@ -3,7 +3,7 @@ "name": "scene-packer", "title": "Library: Scene Packer", "description": "A module to assist with Scene and Adventure packing and unpacking.", - "version": "2.7.12", + "version": "2.7.13", "library": "true", "manifestPlusVersion": "1.2.0", "minimumCoreVersion": "0.8.6", diff --git a/scripts/scene-packer.js b/scripts/scene-packer.js index ba6a1b4..faecaf1 100644 --- a/scripts/scene-packer.js +++ b/scripts/scene-packer.js @@ -457,7 +457,7 @@ export default class ScenePacker { if (forceImport && !renameOriginals) { return true; } - let sourceId = entity._stats?.compendiumSource ?? e.getFlag(CONSTANTS.MODULE_NAME, 'sourceId'); + let sourceId = e._stats?.compendiumSource ?? e.getFlag(CONSTANTS.MODULE_NAME, 'sourceId'); let coreSourceId = e._stats?.compendiumSource ?? e.getFlag('core', 'sourceId'); const hasExistingEntryWithID = collection.get(e.id); if (hasExistingEntryWithID || sourceId || coreSourceId) {