BG-Software-LLC / WildChests

Sell chests, auto crafters, storage units, larger chests and more in one plugin!
https://bg-software.com/wildchests/
GNU General Public License v3.0
32 stars 22 forks source link

Make broken chests stack their items, to reduce lag. #218

Closed LlmDl closed 3 months ago

LlmDl commented 7 months ago

Normal chests did not appear to use any stacking, this PR creates a map of items and calculates how many items there are total, then drops items into as large a stack as is allowed.

LlmDl commented 7 months ago

This has been successfully tested by a mutual user of ours and it has helped with large amounts of items being dropped to the ground causing the player lag.

OmerBenGera commented 3 months ago

I implemented it in my own way, so it is more robust. Check out latest dev build, and if you have issues, make sure you report them.

Thanks for your contribution!