[Rseding91] [15.37] LuaItemStack.swap_stack incorrect for held item

This subforum contains all the issues which we already resolved.
Post Reply
Aidiakapi
Long Handed Inserter
Long Handed Inserter
Posts: 51
Joined: Fri Apr 14, 2017 6:13 pm
Contact:

[Rseding91] [15.37] LuaItemStack.swap_stack incorrect for held item

Post by Aidiakapi »

Version: 0.15.29 through 0.15.37
Description: Calling LuaItemStack.swap_stack behaves unexpectedly when you have the stack being swapped in-hand.
Video: 37s @ YouTube
Image:
factorio_swap_stack_issue.png
factorio_swap_stack_issue.png (60.04 KiB) Viewed 752 times
Command:

Code: Select all

local q = game.player.get_quickbar() q[1].swap_stack(q[11])
Expected: The black "in-hand" indicator gets swapped along, and pressing clearing the cursor will return the item to the swapped ItemStack.
Attachments
factorio-current.log
(3.57 KiB) Downloaded 28 times

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

Re: [Rseding91] [15.37] LuaItemStack.swap_stack incorrect for held item

Post by Rseding91 »

Thanks for the report. That was never part of what swap_stack was meant to do but it wasn't hard to change so I've changed it for 0.16 to work as you describe.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Resolved Problems and Bugs”