Mekanism

Mekanism

111M Downloads

quantum tank and item pipe crash

mortinho opened this issue ยท 1 comments

commented

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)

crash-2017-10-09_12.39.59-server.txt

commented

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