Skip to content

Commit

Permalink
2.17.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Saibot393 committed Jan 16, 2024
1 parent ea6a4ff commit fe0e034
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"name": "saibot"
}
],
"version": "2.17.4",
"version": "2.17.5",
"compatibility": {
"minimum": "10",
"verified": "11"
Expand Down Expand Up @@ -64,7 +64,7 @@
]
},
"url": "https://github.com/Saibot393/Rideable",
"download": "https://github.com/Saibot393/Rideable/archive/refs/tags/v2.17.4.zip",
"download": "https://github.com/Saibot393/Rideable/archive/refs/tags/v2.17.5.zip",
"manifest": "https://github.com/Saibot393/Rideable/releases/latest/download/module.json",
"readme": "https://github.com/Saibot393/Rideable/blob/main/README.md",
"changelog": "https://github.com/Saibot393/Rideable/blob/main/CHANGELOG.md",
Expand Down
4 changes: 2 additions & 2 deletions scripts/FollowingScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class FollowingManager {

//IMPLEMENTATIONS
static FollowingActive() {
return RideableCompUtils.isactiveModule(cRoutingLib) && game.settings.get(cModuleName, "EnableFollowing");
return game.settings.get(cModuleName, "EnableFollowing") && (RideableCompUtils.isactiveModule(cRoutingLib) || (game.settings.get(cModuleName, "FollowingAlgorithm") == "SimplePathHistory"));
}

static async FollowToken(pFollowers, pTarget, pDistance = -1) {
Expand Down Expand Up @@ -368,7 +368,7 @@ class FollowingManager {
}
}

Hooks.once("routinglib.ready", function () {
Hooks.once("ready", function () {
if (FollowingManager.FollowingActive()) {
Hooks.on("updateToken", (...args) => FollowingManager.OnTokenupdate(...args));

Expand Down

0 comments on commit fe0e034

Please sign in to comment.