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

This subforum contains all the issues which we already resolved.
Post Reply
Honktown
Smart Inserter
Smart Inserter
Posts: 1026
Joined: Thu Oct 03, 2019 7:10 am
Contact:

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

Post 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 54 times
I have mods! I guess!
Link

Rseding91
Factorio Staff
Factorio Staff
Posts: 13231
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post by Rseding91 »

Thanks for the report. It's now fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Resolved Problems and Bugs”