Jump to content

Container:DropItem lacks pairity with Inventory:DropItem


Bumber64
  • Pending

Container:DropItem only takes an item as an argument, while Inventory:DropItem takes item, wholestack, randomdir, and pos.

This means that:

inst.components.inventoryitem:GetContainer():DropItem(inst, true)

will properly drop the entire stack if inst is inside an inventory, but not when in a container.


Steps to Reproduce

Create a mod with code similar to above, and use on a stackable item.




User Feedback


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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...