LuaItemStack::create_blueprint always includes tile ghosts
Posted: Sun Jul 02, 2017 6:40 pm
When using LuaItemStack::create_blueprint() with always_include_tiles = false, tile ghosts are always included in the resulting blueprint, even if the area contains other entities. This doesn't happen when creating a blueprint manually over the same area.
Blueprint created via script: Blueprint created manually: Command used:
Blueprint created via script: Blueprint created manually: Command used:
Code: Select all
/c p = game.player; pp = p.position; p.cursor_stack.set_stack('blueprint'); p.cursor_stack.create_blueprint{area = {{ pp.x - 5, pp.y - 5 }, { pp.x + 5, pp.y + 5 }}, surface = p.surface, force = p.force}