Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage of FluidStack data component causes tanks to be unable to be extracted from Refined Storage #311

Closed
raoulvdberge opened this issue Dec 25, 2024 · 2 comments

Comments

@raoulvdberge
Copy link

Hello there,

FluidStack does not implement equals and/or hashcode.

If you try to insert a XP Drain Singulary Tank into Refined Storage, and then try to extract it, the extraction will fail because:

  • Refined Storage will send an example stack to be extracted to the server
  • It will reconstruct the stack based on item ID and data component map
  • It will try to extract this exact stack from storage.

However, if the object identity is not stable due to missing equals and/or hashcode, this extraction for the exact stack will fail.

My suggestion is to use a wrapper object that implements equals/hashcode correctly for the data component.

@Flanks255
Copy link
Collaborator

Interesting, i forgot all about this, when i tried to do something similar in Actually Additions, I HAD to make a wrapping object because it didn't function at all because of the same issue lol, how i got away with this in MGU but not AA i do not know...
At least i can just copy the other class i wrote haha.

@Flanks255
Copy link
Collaborator

Fixed in next build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants