raise_built for LuaItemStack.build_blueprint

Post Reply
justarandomgeek
Filter Inserter
Filter Inserter
Posts: 300
Joined: Fri Mar 18, 2016 4:34 pm
Contact:

raise_built for LuaItemStack.build_blueprint

Post by justarandomgeek »

LuaItemStack.build_blueprint should have a flag raise_built to cause script_raised_built to be fired for each ghost

Rseding91
Factorio Staff
Factorio Staff
Posts: 13219
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: raise_built for LuaItemStack.build_blueprint

Post by Rseding91 »

The game fires the standard build events for the player that did the building. So, there's no need for this in that case, but having it fire when by_player is not provided I guess would be fine.
If you want to get ahold of me I'm almost always on Discord.

justarandomgeek
Filter Inserter
Filter Inserter
Posts: 300
Joined: Fri Mar 18, 2016 4:34 pm
Contact:

Re: raise_built for LuaItemStack.build_blueprint

Post by justarandomgeek »

Ah! ConMan doesn't set by_player because it doesn't know who (if anyone) caused the signals that triggered it, but I got a report from a user wanting events, presumably so that an instant-blueprinter can revive them. It seemed wrong to me to call the api and then just turn around and raise_event everything it gave me back!

Post Reply

Return to “Implemented mod requests”