Page 1 of 1

DecorativePrototype default value for collision_mask is incorrect

Posted: Sat Apr 27, 2024 11:32 am
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"}.

Re: DecorativePrototype default value for collision_mask is incorrect

Posted: Sat Apr 27, 2024 12:57 pm
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.

Re: DecorativePrototype default value for collision_mask is incorrect

Posted: Sat May 04, 2024 4:40 pm
by Bilka
Thank you for noting this here, default value fixed for the next doc release.