Page 1 of 1

[Rseding91] [16.3] swap_stack broken with empty LuaItemStack and cursor

Posted: Fri Dec 15, 2017 3:57 pm
by Aidiakapi
If the player has an item from the quickbar in his hand, whilst a script executes swap_stack, and the stacks involved are both the one the player has in their cursor and an empty LuaItemStack, it will fail and return false.

Expected: Swap happens the same as it would when there is an item in the latter stack.

Video: https://youtu.be/ZfArzuu6SgA

Re: [Rseding91] [16.3] swap_stack broken with empty LuaItemStack and cursor

Posted: Fri Dec 15, 2017 4:25 pm
by Rseding91
Thanks for the report however that's working as intended. You're swapping an empty stack with an empty stack which is a no-op.