From e0b4d96feac00c82036a3143ede1262caf8e052e Mon Sep 17 00:00:00 2001 From: Erebus Date: Fri, 20 Aug 2021 08:03:17 +0200 Subject: [PATCH] Bug fixes --- module/actors/actor-sheet.js | 4 ++-- system.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/module/actors/actor-sheet.js b/module/actors/actor-sheet.js index 3825678..3bf0ca2 100644 --- a/module/actors/actor-sheet.js +++ b/module/actors/actor-sheet.js @@ -1010,8 +1010,8 @@ export class ActorSheetKH extends ActorSheet { if (_item) { let newVal = true; - if(_item.data.used !== undefined) { - newVal = !_item.data.used; + if(_item.data.data.used !== undefined) { + newVal = !_item.data.data.used; } let update = { diff --git a/system.json b/system.json index 063d0c1..bf980ce 100644 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "name": "kopparhavet", "title": "Kopparhavets Hjältar", "description": "The Molten Sea is a dangerous but exciting place, where pirates, sorcerers and secretive orders of knighthood struggle for power, wealth and ancient lore.", - "version": "0.0.7", + "version": "0.0.8", "minimumCoreVersion": "0.8.6", "compatibleCoreVersion": "0.8.8", "templateVersion": 4, @@ -95,6 +95,6 @@ "url": "https://pi.rikspolisen.se/foundryvtt/kopparhavet", "socket": true, "manifest": "https://pi.rikspolisen.se/foundryvtt/kopparhavet/raw/branch/master/system.json", - "download": "https://pi.rikspolisen.se/foundryvtt/kopparhavet/archive/v0.0.6.zip", + "download": "https://pi.rikspolisen.se/foundryvtt/kopparhavet/archive/v0.0.8.zip", "license": "LICENCE.txt" }