collision_mask ={player-level, ...} makes entity unplaceabel

Place to get help with not working mods / modding interface.
Post Reply
rude_grass
Inserter
Inserter
Posts: 20
Joined: Tue May 01, 2018 3:29 pm
Contact:

collision_mask ={player-level, ...} makes entity unplaceabel

Post by rude_grass »

I created a mod, that adds an entity that is placeable on water and contains:
oil_rig.collision_mask = {'ground-tile', 'object-layer', "player-layer"}
the addition of "player-layer" to the collision mask lead to me receiving multiple bug reports from users, that the entity is not placeable anymore. I tested the mod with the latest stable and experimental versions, and did not run in a similar issue.
Now i am at a complete loss: I can't reproduce the issue and do not know what could be causing it. Does anybody have an idea how 'player-level' could interfere with the entity being placeable?

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: collision_mask ={player-level, ...} makes entity unplaceabel

Post by eradicator »

All water tiles collide with the player-layer because the player can't swim. Not sure how you manage to not reproduce that from the description. Unless you have mods that enable swimming and thus probably remove the player-layer from water tiles...

Post Reply

Return to “Modding help”