get/set_blueprint_entities() do not support cargo-wagon filters
Posted: Wed Mar 13, 2019 10:45 pm
Currently if a BP is created for a train including cargo wagon filters, the filter settings are not captured in LuaItemStack::get_blueprint_entities().
I would expect something like:
to be a noop, but that is currently not the case.
Use case:
viewtopic.php?f=190&t=56850&start=200#p411860
Bulk Rail Loaders uses a container entity, but since containers have no direction, for blueprinting purposes I put a pump entity, modifying the blueprint during on_player_setup_blueprint.
I would expect something like:
Code: Select all
stack.set_blueprint_entities(stack.get_blueprint_entities())
Use case:
viewtopic.php?f=190&t=56850&start=200#p411860
Bulk Rail Loaders uses a container entity, but since containers have no direction, for blueprinting purposes I put a pump entity, modifying the blueprint during on_player_setup_blueprint.