That's this bit of code in data.lua:
--add collision mask to curved rails
local defaultRailMask = {"object-layer", "item-layer", "floor-layer", "water-tile"}
for railName,_ in pairs(data.raw["curved-rail"]) do
if not data.raw["curved-rail"][railName].collision_mask then
data.raw["curved-rail"][railName].collision_mask = defaultRailMask
end
table.insert(data.raw["curved-rail"][railName].collision_mask, "layer-13")
end
I don't know why it needs to be done, I've removed it and everything works fine
edit: Mostly everything works fine, it's just a few weird effects when you enter a tunnel sideways