Helfima / helmod

Factorio Mod
149 stars 64 forks source link

get smart tool delete hand item stack #459

Closed Helfima closed 1 year ago

Helfima commented 1 year ago

if blueprint is not identified in the inventory that delete the items of hand stack

helmod_dev\model\Player.lua line 147: Lua_player.cursor_stack.set_stack("blueprint") we must change method

sample:

`local script_inventory = game.create_inventory(1) local blank_slot = script_inventory[1]

blank_slot.set_stack{name="fp_cursor_blueprint"} blank_slot.set_blueprint_entities(blueprint_entities) player.add_to_clipboard(blank_slot) player.activate_paste() script_inventory.destroy()`

KiwiHawk commented 1 year ago

Fixed by b195d85