raise_built for LuaItemStack.build_blueprint
-
- Filter Inserter
- Posts: 302
- Joined: Fri Mar 18, 2016 4:34 pm
- Contact:
raise_built for LuaItemStack.build_blueprint
LuaItemStack.build_blueprint should have a flag raise_built to cause script_raised_built to be fired for each ghost
Re: raise_built for LuaItemStack.build_blueprint
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.
-
- Filter Inserter
- Posts: 302
- Joined: Fri Mar 18, 2016 4:34 pm
- Contact:
Re: raise_built for LuaItemStack.build_blueprint
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!