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
39 stars 23 forks source link

Fix `itemsRemoved` value is not updated #79

Closed LegameMc closed 2 years ago

LegameMc commented 2 years ago

As the title said, if the value is not updated. It will remove item from the rest of the pages although it has already reached the amount.

For example:

removeItem(1, new ItemStack(MATERIAL.SAND))

Due to the itemsRemoved value is not updated, it will continue removing 1 sand from the rest of pages until i < pages.length returns false