quantum tank and item pipe crash
mortinho opened this issue ยท 1 comments
Issue description:
quantumstorage's quantum tank and a logistical transporter pipe with a pull connection crashes the server on every atempt to load
Steps to reproduce:
1.place quantum tank down
2.place any type of logistical transporter attached to it
3.change connection with the configurator until pull mode
Version (make sure you are on the latest version before reporting):
Forge: 14.22.1.2485
Mekanism: 9.4.1.326
Other relevant version: minecraft 1.12.1 - QuantumStorage 4.4.2
If a (crash)log is relevant for this issue, link it here: (It's almost always relevant)
There's only one way that line would crash, and that is when another mod screws things up badly.
Technical stuff:
We check if there's an IItemHandler capability, that check passes (the other block indicates: we've got this capability)
We get the capability and use it -> Crash.. This would indicate there isn't a capability although we explicitly checked for it.
Related code:
https://github.com/aidancbrady/Mekanism/blob/1.12/src/main/java/mekanism/common/content/transporter/TransitRequest.java#L113
https://github.com/aidancbrady/Mekanism/blob/1.12/src/main/java/mekanism/common/util/InventoryUtils.java#L539