Closed LegameMc closed 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
itemsRemoved
i < pages.length
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:
Due to the
itemsRemoved
value is not updated, it will continue removing 1 sand from the rest of pages untili < pages.length
returns false