Page 1 of 1

[1.1.78] inserting regular items [via code] into a blueprintbook LuaInventory crashes the game

Posted: Sat Mar 25, 2023 1:44 am
by Honktown
What happened: Game crash upon inserting 'regular' item into Blueprint Book inventory

Reproduction:

Code: Select all

/c
local player = game.player
local cursor = player.cursor_stack
cursor.set_stack("blueprint-book")
local inv = cursor.get_inventory(defines.inventory.item_main)

local inserted = inv.insert("iron-plate")
game.print("inserted "..inserted)
Expectation:
Error: "blueprint-book inventory can only contain blueprinting items" e.g.

log stacktrace:
blueprintbook-insert-item-crash.txt
(7.59 KiB) Downloaded 61 times

Re: [1.1.78] inserting regular items [via code] into a blueprintbook LuaInventory crashes the game

Posted: Mon Apr 17, 2023 7:02 pm
by Rseding91
Thanks for the report. It's now fixed for the next release.