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

Bugs that are actually features.
Post Reply
Aidiakapi
Long Handed Inserter
Long Handed Inserter
Posts: 51
Joined: Fri Apr 14, 2017 6:13 pm
Contact:

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

Post 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
Attachments
factorio-current.log
(11.98 KiB) Downloaded 53 times

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

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

Post 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.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Not a bug”