NPE on item transfer
Macrophage001 opened this issue ยท 14 comments
I'm not sure if this issue stems from Tiny Progressions or Integrated Tunnels but it seems to be caused by their interaction. I used 8 tier 8 cobblestone gens from Tiny Progressions with an item interface connected to each and an item exporter connected to a drawer controller. As soon as I connected the item exporter and placed a variable to only allow cobblestone to enter the drawer controller, the game crashed.
Here is the crash report:
This seems to be caused by an invalid target inventory.
Can you try hooking up your interface to a regular chest instead of a drawer controller instead, and see if that still crashes?
The same issue does not occur. Only when I try to place a item exporter onto a drawer controller Does it crash
Sounds like an issue with Storage Drawers then, something with their sided item handler capability must be going wrong. Can you report it on their issue tracker and link back here?
Sorry it took so long. Here you go:
I need more information on the inventory usage. It looks like SD blocks are being treated as IInventories, but they do not support that interface. Only IItemHandler.
No, the item interfaces are connected to the cobblestone generators and the item exporter is connected to the drawer controller. I'll take a picture of my setup when I get back from work. It's basically 8 Cobblestone Generators with item interfaces on each, then a drawer controller directly above them with an item exporter connected to it. Everything is connected together but the crash occurs once I place the blank variable card into the item exporter.
@jaquadro IT only works with the IItemHandler
capability, and never works with the old IInventory
. I also never do a manual InvWrapper
wrapping. So I assume another mod must be causing this.
@Macrophage001 Are you sure that your IT item interface is attached to a block of Storage Drawers? And not some kind of chest? Because the crashlog indicates that a corrupted InvWrapper
is being used, which is only possible on a vanilla chest, and maybe some other mod inventories.
@Macrophage001 Thanks!
Until I have time to look into this, could you try this setup with item importers instead of the interfaces, and an interface instead of the exporter?
Ah, but wait...
The cobble generators seem push items to the interface themselves. Because of how IT interfaces work, these items will be pushed to the other blocks that the interfaces are targetting, i.e., the other cobble generators. So the cobble generator blocks must be exposing an invalid item handler capability. More specifically, they expose an item handler which can contain null
ItemStacks, instead of ItemStack.EMPTY
.
@Macrophage001 Could you report this to the mod author of those cobble generators?
The setup described in my previous comment should work in any case.
A different error occurs when I try the item importers setup:
crash-2017-09-27_21.25.21-server.txt
And will do.