Skip to content

Suspected incorrect function implementation #3759

@zeng-github01

Description

@zeng-github01

Describe the bug

INetwork.getItemStorageCache() function suspected to have incorrect implementation

I am developing a small auxiliary mod to convert RS storage to IFluidHandler and IItemHandler, so that it can communicate with AE2.

I use this.storageCacheData = this.network.getItemStorageCache().getList().getStacks().toArray(new ItemStack[0]); to get the items in the network. But it gives wrong return value

When there are multiple disks with the same items in the network, the AE2 terminal cannot see these items. Other items are normal.

This problem does not exist in 1.12.2. It only occurs in 1.20.1 or 1.18.2, and only appears in ItemStorageCache

Related code implementation:ItemHandler.java

How can we reproduce this bug or crash?

1.Install this and AE2
2.Use the storage bus to connect to Exposer
3.Done

What Minecraft version is this happening on?

Minecraft 1.20.1

What Forge version is this happening on?

LexForge 47.2.32

What Refined Storage version is this happening on?

1.12.4

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions