From 432eb5e65bc82627cdf497145f29fb7157832eb2 Mon Sep 17 00:00:00 2001 From: p4535992 Date: Sun, 9 Oct 2022 20:33:05 +0200 Subject: [PATCH] version 0.6.10 --- CHANGELOG.md | 5 +++++ package.json | 2 +- src/module.json | 6 +++--- src/scripts/lib/lib.ts | 2 +- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d46146c..a483f8e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +### 0.6.10 + +- BUg fix; https://github.com/p4535992/foundryvtt-inventory-plus/issues/14 +- Bug fix: https://github.com/p4535992/foundryvtt-inventory-plus/issues/13 + ### 0.6.0-1-2-3-4-5-6-7-8-9 - Update fvtt10 diff --git a/package.json b/package.json index f28a8ee..7aa57bf 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "inventory-plus", "title": "Inventory+", "description": "Enhances the default dnd5e sheets inventory to allow for reorganization", - "version": "0.6.9", + "version": "0.6.10", "main": "main.js", "scripts": { "publish": "gulp publish --update", diff --git a/src/module.json b/src/module.json index 73270aa..3e50d84 100644 --- a/src/module.json +++ b/src/module.json @@ -2,7 +2,7 @@ "id": "inventory-plus", "title": "Inventory+", "description": "Enhances the default dnd5e sheets inventory to allow for reorganization", - "version": "0.6.9", + "version": "0.6.10", "authors": [ { "name": "Felix#6196" }, { @@ -76,8 +76,8 @@ "url": "https://github.com/p4535992/foundryvtt-inventory-plus", "manifest": "https://github.com/p4535992/foundryvtt-inventory-plus/releases/latest/download/module.json", "download": "https://github.com/p4535992/foundryvtt-inventory-plus/releases/latest/download/module.zip", - "readme": "https://github.com/p4535992/foundryvtt-inventory-plus/blob/v0.6.9/README.md", - "changelog": "https://github.com/p4535992/foundryvtt-inventory-plus/blob/v0.6.9/CHANGELOG.md", + "readme": "https://github.com/p4535992/foundryvtt-inventory-plus/blob/v0.6.10/README.md", + "changelog": "https://github.com/p4535992/foundryvtt-inventory-plus/blob/v0.6.10/CHANGELOG.md", "bugs": "https://github.com/p4535992/foundryvtt-inventory-plus/issues", "allowBugReporter": true, "relationships": { diff --git a/src/scripts/lib/lib.ts b/src/scripts/lib/lib.ts index 003d6f1..007d374 100644 --- a/src/scripts/lib/lib.ts +++ b/src/scripts/lib/lib.ts @@ -983,6 +983,6 @@ function _calcItemWeight(item: Item) { export async function _isFromSameActor(actor, data) { //@ts-ignore const item = await Item.implementation.fromDropData(data); - return actor.id === item.parent?.uuid; + return actor.id === item.parent?.uuid || actor.uuid === item.parent?.uuid; // return this.actor.id === item.parent?.uuid }