Containers with stacked "Sophisticated Storage" upgrades in contraption will cause items to be lost
FirDragon opened this issue ยท 1 comments
Describe the Bug
When there is a barrel containing a stacked upgraded "Sophisticated Core" in contraption, using a wrench to remove the contraption and then release it, the items with more than 64 will disappear.
Reproduction Steps
- Craft a barrel with stackable upgrades
- Put more than 64 items in it.
- Assemble into a minecart and remove with a wrench
- Releases a minecart and makes it materialize
- Items stacked above 64 will disappear
Expected Result
Items stacked above 64 will not disappear and the number will remain unchanged.
Screenshots and Videos
No response
Crash Report or Log
No response
Operating System
Windows 10
Mod Version
0.5.1f
Minecraft Version
1.20.1
Forge Version
47.3.0
Other Mods
Sophisticated Core
Sophisticated Storage
Additional Context
The default ItemStackHandler is used in the MountedStorage.deserialize method instead of the Sophisticated Core net.p3pp3rf1y.sophisticatedcore.inventory.InventoryHandler. It also does not use BlockEntity.getCapability(ForgeCapabilities.ITEM_HANDLER) like other parts. This may be the cause of the problem