LuaRecord read-only information

SWeini
Long Handed Inserter
Long Handed Inserter
Posts: 87
Joined: Mon Apr 04, 2022 6:43 am
Contact:

LuaRecord read-only information

Post by SWeini »

From https://lua-api.factorio.com/latest/cla ... ecord.html
Records in the "my blueprints" shelf are read-only, but records in the "game blueprints" shelf are read/write.
I'm absolutely able to modify records in "my blueprints" inside the on_player_setup_blueprint event. Is this piece of information outdated or is that event an exception?
Bilka
Factorio Staff
Factorio Staff
Posts: 3757
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: LuaRecord read-only information

Post by Bilka »

That event is an exception. Thanks for noting it, I've updated the docs for the next 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”