qb-inventory icon indicating copy to clipboard operation
qb-inventory copied to clipboard

[BUG] Unqiue = false don't take care of metadata

Open Capy1174 opened this issue 5 months ago • 4 comments

Summary

if for a item that use metadata we make unique = false so in that if two same item name but different metadata they stack on each other then put the metadata of item which is already on a slot and new item with metadata stack on that make mess

Reproduction

  1. Create a item like pizza
  2. Add two item in inventory but both item should use different metadata info.
  3. 1 item of pizza should have Size = 10 and another item of pizza should have size = 2
  4. when u add these item one by one these will stack on each other and if u already have pizza size = 10 and you adding item with size = 2 then inventory will make both pizza item size = 10

Expected behavior

It should stack items when they have same metadata info but if any item has different metadata info it should not be stacked on item that has same name but different metadata info

Actual behavior

It not comparing metadata on unique = false

Additional context

its important if we using metadata in any item like a useable pizza item we can't make it unique for each pizza item if we do it will fill whole inventory slots just with eating item so it should stack if metadata if same even if unique = false

Last Updated

yesterday i check by downloading latest version of qb-inventory

Custom Resources

qb-inventory has this issue i use exports to add item with a command

Resource Rename

no i use name qb-inventory which is default name

Capy1174 avatar Sep 25 '24 13:09 Capy1174