Mantle

Mantle

157M Downloads

Potential NPE in Mantle when an inventory is queried early

asiekierka opened this issue ยท 3 comments

commented

That probably was one of tinkers crafting tables that was hooked up to a buildcraft pipe on an old TCon version. When they updated the inventory size got changed (crafting tables actually had a bigger, invisible, non-accessible inventory) the pipes still have the old size cached and therefore crash. I can't really return something else than null for a nonexistant slot.
Since there is no exception in that trace I can't even tell if that's the problem.

commented

I've had it happen before. When I did that change.
Could also try the latest mantle-build which has an additional check. But only works if it's actually the same issue. ;)

commented

Generally, you should return null on invalid getStackInSlot values, however, I will look into that theory.

Also, the person implied it happens on world load, and BC definitely does not cache inventory sizes in NBT...