-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Sophisticated storage bug #115
Comments
Thanks for reporting! |
Based on what you describe, there may be some issues with Sophisticated storage's item handler capability implementation. Could you report it to their issue tracker? Could you add a link to the issue here? |
Sorry for the inconvenience, reported: P3pp3rF1y/SophisticatedStorage#316 |
Thanks! :-) |
I took a look at this and the problem is down to the combinations of two things
So as the item handler is getting initialized Integrated gets notified of block change, tries to get capability and pulls a different instance of item handler as initialization hasn't completed yet. So block ends up with initialized instance of handler that is different from the one that Integrated now uses, but because Integrated doesn't refresh the handler as long as the block still supports item handler capability it doesn't refresh the handler on any subsequent change notifications. I tried making it so that setChanged would get called only once but got to the point where the code was getting already very bloated and still had to work with additional cases. So basically I feel this needs to be fixed on Integrated side by either supporting item handler cap as it is designed or by updating item handler when attached block notifies it has changed. |
Hmm, I don't remember implementing any caching of capabilities. But I could be just forgetting it... Thanks for looking into this @P3pp3rF1y! I'll have a look at it on my end. Note to self: check if IT is caching caps. |
Actually I take it back. |
Thanks for checking again @P3pp3rF1y! |
Issue type: Bug
Short description:
Potentially two bugs: 1) Storage terminal does not view the items inside of sophisticated storage chests/barrels (found testing these two mods alone), 2) IntegratedTerminals does not recognize the basic chest from the "sophisticated storage" mod as storage (in chosen's modded adventures).
Steps to reproduce the problem:
bug 1:get a chest/barrel (warped barrel and a diamond chest were used by me) from sophisticated storage mod, put items in it, attach an item interface to it and link that to a storage terminal with a logic cable. The storage terminal will work fine and show the items of the inventory. Break the inventory and place it back again in the same spot and put items inside. The storage terminal will not show the items inside the chest anymore (even if the terminal/cable/interface were broken and placed back again). I found this while testing these two mods alone as instructed below.
bug 2: on chosen's modded adventures modpack, the original bug is that when you use a base tier of a chest/barrel (ex. "oak chest") The storage terminal will NOT show the items inside. If you try this with any other tier of the chest (iron+), the mod has no issues. I tested bug 1 in this modpack and it occurs aswell. Bug 2 might be a byproduct of bug 1.
Expected behaviour:
For this mod to view the contents of the chests/barrels from that mod with no issues regardless of the tier and inventory replacement.
Versions:
The text was updated successfully, but these errors were encountered: