Open MuYuehe opened 1 year ago
It's a bug. The should not stack.
The bag size can be set in config and like physical money you can only have a limited number of coins in a bag. And only one bag in a slot. This is the idea.
The stacking problem I found was related to another plugin. But I do get a bag that exceeds the limit
Are you able reproduce the stacking? Do you know how to do it every time?
Yes, I can reproduce stacking. As I said above, it is because of another plugin: ChestSort. When I put two [Bag of Gold] in the backpack, and then use [ChestSort] to sort the backpack, I get a stacked [Bag of Gold]. This is the reply I got on their channel. I don't think stacking is a huge issue. More importantly, [Bag of Gold] will exceed the upper limit set. Just need to operate:
Okay. This is because ChestSort see the bagofgold item as a head, which can be stacked. The only solution to this is to ask the Dev of ChestSort to Hook into CustomitemsLib so he can check if the item (head) is a Bagofgold. If he is willing to do this, I will help help him with the test to see it the item is a BagOfGold.
Im at work now, so I cant run Minecraft to check the other problem.
I have worked on "COLLECT_ALL_TO_CURSOR" and "PLACE_SOME" / "PLACE_ALL" in latest build
https://jenkins.lindegaard.one/job/CustomItemsLib/
But I am pretty sure that I have not found all problems. :-|
I need help with the testing.
ok, i will test tomorrow, it's 23 o'clock now, good night
When I try to stack two 10000 [Bag of Gold], sometimes I get a 20000 [Bag of Gold]. When I throw out this 20000 [Bag of Gold], it is still a 20000 [Bag of Gold]. When I picked up this 20000 [Bag of Gold], I got two 10000 [Bag of Gold]. I think it's a misnomer. I don't know if [Bag of Gold] supports stacking, but I can stack it together. https://pastebin.com/ceZRNcir