AdvancedPeripherals icon indicating copy to clipboard operation
AdvancedPeripherals copied to clipboard

Duplication through Inventory Manager

Open cliftontoaster-reid opened this issue 8 months ago • 1 comments

Describe

When using the inventory manager too quickly, it sometimes duplicates items when trying to take one from the player.

I built a device that, when clicking on a monitor, it would take a modded item off the player that was bound to the manager. When clicking fast enough, some items were added to the storage and not taken from the player.

I was personally not able to reproduce this bug, but some present when discovering this exploit were. Even though we are not using the latest version, I thought it's useful to share this, hoping it ends being helpful to your team.

Steps to reproduce

I am afraid I was not able to personally redo this. However, I would assume that requesting the inventory manager to take items consistently without delay would result in the mod checking for an item being present multiple times before it was taken from the player. This would result in multiple items being added to the storage.

Multiplayer?

Yes

Version

1.20.1-0.7.40r

Minecraft, Forge and maybe other related mods versions

1.20.1 - 47.3.33

Screenshots or Videos

No response

Crashlog/log

No response

cliftontoaster-reid avatar Apr 20 '25 15:04 cliftontoaster-reid

yes the code for that part very messy, need some rewrite.

zyxkad avatar Apr 20 '25 16:04 zyxkad