The function
function Inventory:DropActiveItem() local active_item = nil if self.activeitem ~= nil then active_item = self:DropItem(self.activeitem) self:SetActiveItem(nil) end return active_item end
in scripts/components/inventory.lua doesn't include the size of the item stack and instead drops always just a single item.
Steps to Reproduce
- Select a stack of >1 items which doesn't drown in water
- Don't unselect that stack of items
- Hop on a sinking boat
- Drown
- Return to the spot where you drowned
- Realize that the stack of X items turned into a stack of only one item
- Profin't!
Alternative: Just use the code "ThePlayer.components.inventory:DropActiveItem()" while holding a stack of >1 items.
-
1
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