Skip to content

Commit

Permalink
Merge pull request #63 from crash1115/dev
Browse files Browse the repository at this point in the history
v0.6.4
  • Loading branch information
crash1115 authored Jul 31, 2021
2 parents b0690d5 + 9d0d591 commit bf98925
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
}
2 changes: 1 addition & 1 deletion scripts/TrackedItemApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit bf98925

Please sign in to comment.