Skip to content

Commit

Permalink
Fixed two more v10 warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolcatFVTT committed Sep 4, 2022
1 parent 73759a4 commit b60ea0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "sta-initiative",
"title": "Star Trek Adventures Initiative",
"description": "CombatTracker improvements for Star Trek Adventures. Depends on the 'Lancer Initiative' module by Bolts, which does most of the work.",
"version": "0.2.0",
"version": "0.2.1",
"authors": [
{ "name": "CoolcatFVTT", "url": "https://github.com/CoolcatFVTT/" }
],
Expand Down Expand Up @@ -45,5 +45,5 @@
"license": "LGPL 3.0",
"url": "https://github.com/CoolcatFVTT/StarTrekAdventures-Initiative",
"manifest": "https://raw.githubusercontent.com/CoolcatFVTT/StarTrekAdventures-Initiative/main/module.json",
"download": "https://github.com/CoolcatFVTT/StarTrekAdventures-Initiative/archive/refs/tags/v0.2.0.zip"
"download": "https://github.com/CoolcatFVTT/StarTrekAdventures-Initiative/archive/refs/tags/v0.2.1.zip"
}
6 changes: 3 additions & 3 deletions sta-initiative.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ class STAInitiative {

static shouldHideChatMessage(cm)
{
return cm?.data?.flags?.core?.initiativeRoll;
return cm?.flags?.core?.initiativeRoll;
}

static shouldCensorChatMessage(cm)
{
const speaker = cm.data.speaker;
const speaker = cm.speaker;
if (!speaker)
return false;

Expand All @@ -32,7 +32,7 @@ class STAInitiative {
if (!token || game.user.isGM)
return true;

const mode = token.data.displayName;
const mode = token.displayName;
if (mode === CONST.TOKEN_DISPLAY_MODES.NONE)
return false;
else if (mode === CONST.TOKEN_DISPLAY_MODES.CONTROL ||
Expand Down

0 comments on commit b60ea0e

Please sign in to comment.