Skip to content

Commit

Permalink
fix: move check to correct location
Browse files Browse the repository at this point in the history
  • Loading branch information
koebi committed Jan 23, 2025
1 parent b509045 commit d96537c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,10 @@ public EncodingManager.Access getAccess(ReaderWay way) {
if (intendedValues.contains(restrictionValue))
return EncodingManager.Access.FERRY;
}
}
// implied default is allowed only if foot and bicycle is not specified:
if (restrictionValues.length == 0 && !way.hasTag("foot") && !way.hasTag("bicycle")) {
return EncodingManager.Access.FERRY;
// implied default is allowed only if foot and bicycle is not specified:
if (restrictionValues.length == 0 && !way.hasTag("foot") && !way.hasTag("bicycle")) {
return EncodingManager.Access.FERRY;
}
}
return EncodingManager.Access.CAN_SKIP;
}
Expand Down

0 comments on commit d96537c

Please sign in to comment.