LightningProperties's priority_rules and exemption_rules are not marked optional

User avatar
Quezler
Fast Inserter
Fast Inserter
Posts: 227
Joined: Fri Mar 25, 2016 6:37 pm
Contact:

LightningProperties's priority_rules and exemption_rules are not marked optional

Post by Quezler »

https://lua-api.factorio.com/latest/typ ... tion_rules

if you set/keep them at nil the game loads up just fine, this leads modders into a false sense of security that they don't have to check if the array exists first.

so it would be nice if they were both marked as optional, or just forced to at least be empty arrays.
Bilka
Factorio Staff
Factorio Staff
Posts: 3415
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: LightningProperties's priority_rules and exemption_rules are not marked optional

Post by Bilka »

Thanks, fixed for 2.0.57.
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”