Page 1 of 1

[1.1.100] Crash to desktop: LuaStack::transfer_stack with item-on-ground

Posted: Thu Dec 21, 2023 9:28 pm
by Cooldude2606
What:
Game will crash to desktop when LuaStack::transfer_stack is called with a stack belonging to an "item-on-ground" entity.
The expected behaviour is the item on the ground to be removed and placed into the new stack.
The new stack does not need to be in the player's inventory for the crash to occur, it also effects chests.

How:
1) Start any game, I used a new freeplay game with no mods enabled.
2) Place an item onto the ground, I used the keyboard keybind to drop a stone furnace.
3) Select the item on the ground with your cusor.
4) Run the command below:

Code: Select all

/c game.player.get_main_inventory().find_empty_stack().transfer_stack(game.player.selected.stack)
Device Details
Crash Log

Re: [1.1.100] Crash to desktop: LuaStack::transfer_stack with item-on-ground

Posted: Fri Dec 22, 2023 11:47 am
by boskid
Thanks for the report. Issue is now fixed for 1.1.101