The Storage Scanner counts the contents of double chests twice
undeadbanana opened this issue ยท 18 comments
Unsure why this is happening but the quantity of items in the scanner is displaying twice as high as it should be. e.g; Shows 4 ender pearls when there's actually only 2. Using newest versions of your mods as of January 25th
Screenshot of the inventory in question in the world, and one of the scanner GUI?
Actually, just figured it out. It's scanning some double chests twice. Scans them as single inventories.
(images in next comment)
I just did a scan because I thought maybe upgrading some Iron Chests messed with something. The scan did get rid of some extra chests, started with 16 in Scanner GUI and new scan only showed 14. Gonna rescan again.
Can you find any kind of pattern in which double chests it happens with and which ones it doesn't?
Actually, I can. Just noticed it's happening to a third chest; All 3 chests despite being Spruce/Oak say they're from the mod Quark. The only Spruce chests that it's not happening to are Minecraft vanilla chests.
I wouldn't say it applies to all modded chests, I'm using some chests from Iron Chests and those are free of this bug. As of right now, it's only affecting the Quark chests. Scanning double chests as single chests but reading the entirety of the double chests contents for each scan.
edit: Also have an Immersive Engineering crate that isn't affected.
Not sure if this is needed but I'm using Quark-r1.4-122.jar, updated yesterday January 24th.
Is it accurate that it applies to all modded chests that occupy multiple blocks?
Hmm, in my testing, this happens to vanilla double chests too. Can you confirm whether this is the case on your end? (Did you possibly set only one piece of the double chest as routable?)
This might also be the same problem; I've got two powercells linked, when one is placed I have about 150k RF, when I place the other in the world it says I now have 310k RF in the linked powercells.
Ignore first screenshot
edit: forgot I could just upload here.
I have verified that this is affecting minecolonies racks as well, when reading contents from the warehouse, everything is doubled. This is because the racks as sets as pairs in the warehouse, anyway to remove that behaviour?
Will be fixed in the next release. I confirmed that this fixes vanilla double chests, Quark double chests, and MineColonies racks. It's possible that other mods' blocks may still have this problem. If so, there's nothing more we can do about it on our end. They'll need to do two things on their end: use IItemHandler instead of IInventory, and make sure that their IItemHandlers returned by different blocks of the same inventory are equal according to the equals and hashCode methods.