From a023488f6ae643a6a68df7c2abb21093cdeb0573 Mon Sep 17 00:00:00 2001 From: Jan Ole Peek Date: Thu, 23 Mar 2023 19:12:34 -0700 Subject: [PATCH] 5.0.6 --- lootsheet-simple.js | 2 +- module.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lootsheet-simple.js b/lootsheet-simple.js index 429b418..56a843d 100644 --- a/lootsheet-simple.js +++ b/lootsheet-simple.js @@ -625,7 +625,7 @@ class LootSheet5eNPC extends dnd5e.applications.actor.ActorSheet5eNPC { return ui.notifications.error(`You must purchase items from a token.`); } // console.log(game.user.character); - if (!game.user.character._id) { + if (!game.user.character) { // console.log("Loot Sheet | No active character for user"); return ui.notifications.error(`No active character for user.`); } diff --git a/module.json b/module.json index 80af6c1..b731cb6 100644 --- a/module.json +++ b/module.json @@ -1,7 +1,7 @@ { "title": "Loot Sheet NPC 5e (Simple Version)", "description": "This module adds an additional NPC sheet which can be used for loot containers such as chests or shopkeepers.", - "version": "5.0.5", + "version": "5.0.6", "esmodules": [ "/lootsheet-simple.js" ],