Open uhloin opened 1 week ago
Thanks for reporting!
Sounds very similar to #130.
Could you report this to the Simple Magnets, with a link to this issue (and #130), and a note saying that the Advanced Magnet may not implement the equals
and hashCode
methods correctly as required by the data components interface?
Yes, similar, and there was 1 more such item from another mod, but I forgot it.
I will report.
... the Advanced Magnet may not implement the
equals
andhashCode
methods correctly ...
Yup, I used an ItemStack[]
argument in the record used for the datacomponent of the advanced magnet which I think is messing things up as it likely compares the arrays by identity rather than by contents.
https://github.com/SuperMartijn642/SimpleMagnets/blob/3545be2fec95d1be7d3c6dc91cb54071de27bbfb/src/main/java/com/supermartijn642/simplemagnets/AdvancedMagnet.java#L128-L129
Ah yeah, that would definitely explain it :-)
Issue type:
Short description:
Cannot get back an Advanced Magnet (from mod Simple Magnets) from Storage Terminal
Steps to reproduce the problem:
Versions: