When an inventory is completely full, any new items get placed in the mouse cursor, or dropped. When wearing a backpack, the backpack tries to take any new items, but fails and drops the items, even if the mouse cursor can hold the item.
This doesn't cause any visible issue with most items, but it causes erronous "ondropped" calls.
It is really easy to fix, I swear:
In the following snippets, the "drop_on_fail" parameter should be defined as "false", because inventory handles that later.
components/inventory.lua:756 elseif overflow ~= nil and overflow:GiveItem(inst, nil, src_pos) then
components/container.lua:177 function Container:GiveItem(item, slot, src_pos, drop_on_fail)
Steps to Reproduce
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now