Skip to content

Commit

Permalink
Fix for tiny bug that is critical for non DnD5e
Browse files Browse the repository at this point in the history
  • Loading branch information
Lupestro committed Oct 23, 2021
1 parent 5dd1004 commit 8148327
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Additionally, in D&D5e only:
## Changelog

This has needed to be pieced together a bit, but here's what I've gleaned from the GIT history.
* 1.4.1 - October 23, 2021 - (Lupestro) Fixed bug in restructuring that broke features for non-DnD5e.
* 1.4.0 - October 23, 2021 -
- (C-S-McFarland) Fix for bug when you have torch and light spell.
- (Lupestro) Major restructuring with cleanup of race conditions.
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "torch",
"title": "Torch",
"description": "Torch HUD Controls",
"version": "1.4.0",
"version": "1.4.1",
"author": "Deuce",
"languages": [
{
Expand Down
2 changes: 1 addition & 1 deletion torch.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class Torch {
let tokenId = tokenHUD.object.id;
let tokenDoc = tokenHUD.object.document ? tokenHUD.object.document : tokenHUD.object;
let tokenData = tokenDoc.data;
let itemName = game.settings.get("torch", "gmInventoryItemName");
let itemName = game.system.id === 'dnd5e' ? game.settings.get("torch", "gmInventoryItemName") : "";
let torchDimRadius = game.settings.get("torch", "dimRadius");
let torchBrightRadius = game.settings.get("torch", "brightRadius");

Expand Down
Binary file modified torch.zip
Binary file not shown.

0 comments on commit 8148327

Please sign in to comment.