Disable Terrain Restriction doesnt work for Trade Carts Pathing

In a widely used mod for the game, there is a function that disables the terrain restriction (Attribute 53 set to 0) for Trade Carts, allowing them to travel over water. However, it seems they still seek a path close to land (the red line in the image) rather than taking a direct route across the water.

Could this be due to the latest update? Is there an attribute that can be adjusted to change how Trade Carts determine their path, so that they take the most direct route (the green line in the image)?

Effect:

Carts working (as you see in the image the Terrain restriction is disabled but trade carts follow the red line instead of green line):

Greetings!