[Rseding91] [15.37] LuaItemStack.swap_stack incorrect for held item
Posted: Thu Oct 26, 2017 12:50 pm
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: Command:
Expected: The black "in-hand" indicator gets swapped along, and pressing clearing the cursor will return the item to the swapped ItemStack.
Description: Calling LuaItemStack.swap_stack behaves unexpectedly when you have the stack being swapped in-hand.
Video: 37s @ YouTube
Image: Command:
Code: Select all
local q = game.player.get_quickbar() q[1].swap_stack(q[11])