DecorativePrototype default value for collision_mask is incorrect

Post Reply
xfret
Burner Inserter
Burner Inserter
Posts: 13
Joined: Sun Apr 11, 2021 10:40 am
Contact:

DecorativePrototype default value for collision_mask is incorrect

Post by xfret »

The default value listed in the prototype docs here for the collision_mask property of DecorativePrototype is incorrect here: https://lua-api.factorio.com/latest/pro ... ision_mask

It lists "doodad-layer", which is a string, but CollisionMask is a type which should be an array of strings. My guess is that the correct value would be {"doodad-layer"}.

curiosity
Filter Inserter
Filter Inserter
Posts: 331
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: DecorativePrototype default value for collision_mask is incorrect

Post by curiosity »

Are you sure that it can't take a string? Though if it can, this is supposed to be gone in 2.0, from what I can tell.

Bilka
Factorio Staff
Factorio Staff
Posts: 3157
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: DecorativePrototype default value for collision_mask is incorrect

Post by Bilka »

Thank you for noting this here, default value fixed for the next doc release.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Post Reply

Return to “Resolved Requests”