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)
Error: "blueprint-book inventory can only contain blueprinting items" e.g.
log stacktrace: