Skip to content

Commit

Permalink
small correction
Browse files Browse the repository at this point in the history
  • Loading branch information
Saibot393 committed Jul 24, 2023
1 parent 2b6deb4 commit 4471fcb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions scripts/compatibility/RideableCompUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ class RideableCompUtils {
return game.modules.get(cArmReach).api.isReachable(pRider, pRidden);
}

if (RideableCompUtils.isactiveModule(cArmReachold)) {
return game.modules.get(cArmReachold).api.isReachable(pRider, pRidden);
}

return true;//if anything failse
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/utils/RideableUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ class RideableUtils {
}

static WithinMountingDistance(pRider, pRidden) {
if (RideableCompUtils.isactiveModule(cArmReach) && game.settings.get(cModuleName, "UseArmReachDistance")) {
if ((RideableCompUtils.isactiveModule(cArmReach) || RideableCompUtils.isactiveModule(cArmReachold)) && game.settings.get(cModuleName, "UseArmReachDistance")) {
return RideableCompUtils.ARWithinMountingDistance(pRider, pRidden);
}

Expand Down

0 comments on commit 4471fcb

Please sign in to comment.