diff --git a/module.json b/module.json index 90ecdb5..3592f98 100644 --- a/module.json +++ b/module.json @@ -7,7 +7,7 @@ "name": "saibot" } ], - "version": "2.17.4", + "version": "2.17.5", "compatibility": { "minimum": "10", "verified": "11" @@ -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", diff --git a/scripts/FollowingScript.js b/scripts/FollowingScript.js index c43cc63..bb85385 100644 --- a/scripts/FollowingScript.js +++ b/scripts/FollowingScript.js @@ -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) { @@ -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));