diff --git a/changelog.md b/changelog.md index b0a18a1..e7f30aa 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,6 @@ +# Version 0.6.4 +- Fixed a bug where current progress couldn't be set to zero in the tracked item edit dialog. + # Version 0.6.3 - Fixed a bug in `CrashTNT.getActivitiesForActor` that caused it to throw an error when used with actors with no activities - Fixed a bug in `CrashTNT.getActivity` that caused it to throw an error when used with actors with no activities diff --git a/module.json b/module.json index 74932e8..9e88e81 100644 --- a/module.json +++ b/module.json @@ -6,7 +6,7 @@ "url": "https://github.com/crash1115/5e-training", "readme": "https://github.com/crash1115/5e-training/blob/master/README.md", "bugs": "https://github.com/crash1115/5e-training/issues", - "version": "0.6.3", + "version": "0.6.4", "minimumCoreVersion": "0.8.2", "compatibleCoreVersion": "0.8.8", "minimumSystemVersion": "1.3.0", @@ -42,5 +42,5 @@ } ], "manifest": "https://raw.githubusercontent.com/crash1115/5e-training/master/module.json", - "download": "https://github.com/crash1115/5e-training/releases/download/v0.6.3/5e-training.zip" + "download": "https://github.com/crash1115/5e-training/releases/download/v0.6.4/5e-training.zip" } diff --git a/scripts/TrackedItemApp.js b/scripts/TrackedItemApp.js index 3d73885..4fbc714 100644 --- a/scripts/TrackedItemApp.js +++ b/scripts/TrackedItemApp.js @@ -67,7 +67,7 @@ export default class TrackedItemApp extends FormApplication { html.on("change", "#progressInput", ev => { let newThing = parseInt($(ev.currentTarget).val()); - if(!newThing || isNaN(newThing) || (newThing <= 0) || (newThing > this.object.item.completionAt)){ + if((newThing == null) || isNaN(newThing) || (newThing < 0) || (newThing > this.object.item.completionAt)){ ui.notifications.warn("Crash's Tracking & Training (5e): " + game.i18n.localize("C5ETRAINING.InputErrorProgress")); this.render(); } else {