By comparing with your modified code, I guess the critical change lies in "floor-layer"
.
There is no official explanation about what each layer does exactly, so it is hard to figure why it is so. (Just like what "floor-layer"
& "item-layer"
exactly do???)
Anyway, my guess is one(+) of your used mods has modified "floor-layer"
to a great extent. Are you using some swimming mods or something to do with terrain?
Maybe I shall add an extra option to remove "floor-layer"
to the next version. Would it be a proper way to make this mod working (no code editing needed) for your mod set?
BTW, I would like to know what is the cause. Which mod has caused this? I will add such info to the option tooltip and compatibility list, if I can know this.
P.S. 1: Curious about your line of default (applied to big electric pole). It is not present in vanilla nor my original code. Do you need this extra "train-layer"
to make it work?
default = { "object-layer", "train-layer" },
P.S. 2: The remove = { "water-tile", "item-layer", "player-layer" }
line is a failsafe line to remove water-related masks, in case the collision masks values are no longer nil by vanilla default (e.g., some mods who are introducing their own set of layers, or some overhaul mods.) So are you sure setting it to nil is needed to make it works in your game?