Applied Energistics 2

Applied Energistics 2

156M Downloads

Duplication bug with storage bus, item interface, and auto crafting.

coolsa opened this issue ยท 1 comments

commented

Describe the bug

When using an item interface with a crafting card, a storage bus attached to the item interface, and setting up a crafting system, duplication of items is possible.

How to reproduce the bug

Tested while using the below setup. From left to right: A creative energy cell, an ME chest with a 1k ME item storage cell (no impact on bug), a 1k crafting storage, an pattern provider, a molecular assembler, a cable with a pattern interface (no impact on bug), cables connecting directly to an interface, and a storage bus above the interface.

image

Creating a crafting pattern for the molecular assembler, such as 1 log -> 4 planks, and then placing a request for any number greater than 1 in the interface in multiple slots will begin the duplication bug.

image

This can lead to some unexpected item quantities.
image

Expected behavior

When using a storage bus and an item interface next to one another, items should not be duplicated in the item interface.

Additional details

Not sure what could be causing this, but assuming it's the storage bus summing all of the slots, placing them right back into the interface on the left-most slot occupied by other blocks with that new total, but failing to remove the items from the other slots. The strange thing is that sometimes items are removed from other slots, but it is inconsistent.

Which minecraft version are you using?

1.17

On which mod loaders does it happen?

Fabric

Crash log

https://gist.github.com/coolsa/5f024e8e4a71c50d4333280353b904df

commented

This appears to be fixed with PR #5488