Use of "true" in prototype examples

Honktown
Smart Inserter
Smart Inserter
Posts: 1042
Joined: Thu Oct 03, 2019 7:10 am
Contact:

Use of "true" in prototype examples

Post by Honktown »

Came across a boolean prototype property, where the example uses "true", when true is preferred (and might be enforced boolean later?)

I request that these be changed to just true in examples, because using the "right type" makes the modding simpler.

https://lua-api.factorio.com/1.1.109/pr ... ml#upgrade
uhoh1.png
uhoh1.png (110.55 KiB) Viewed 285 times
I have mods! I guess!
Link
Bilka
Factorio Staff
Factorio Staff
Posts: 3310
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Use of "true" in prototype examples

Post by Bilka »

Yes, the special type coercion is getting removed for booleans in 2.0. So, example fixed for the next doc release, thanks for the note.
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”