srnyx/impulsive-inventories

Items sometimes duplicated when randomized

srnyx opened this issue · 1 comments

srnyx commented

Expected behavior

Items should not be duplicated when inventory is randomized.

Actual behavior

Sometimes, some items will be duplicated when randomizing a player's inventory.

Steps to reproduce

Randomize a player's (preferably your own) inventory using /ii randomize [<player>]

Version

1.0.0

Checks

  • I asked in the Discord to see whether this issue is in fact a bug that needs to be fixed.

Anything else

Relevant code: https://github.com/srnyx/impulsive-inventories/blob/master/src/main/java/xyz/srnyx/impulsiveinventories/InventoryManager.java#L36-L40