-
Notifications
You must be signed in to change notification settings - Fork 15
Zero-length multiblock manual structure causes Immersive Petroleum crash #35
Comments
I haven't been able to reproduce this crash. If you would post a crashlog, as I requested in the contributing guidelines, I'll probably be able to fix it. |
crash-2018-08-01_13.54.17-client.txt |
|
I was only using the mod with my own Minecraft instance, so there is no public pack. I attached my debugger to the game during startup and stepped through the updateTemplate() method in MultiblockTemplateManual to see where the issue occurs. I think Minecraft is failing to correctly read the templates with IC2 blocks and leaving them blank, although I need to setup my modding environment to be able to step through the code that reads templates. |
After investigating a crash during startup from Immersive Petroleum I found that its multiblock projector was crashing when trying to add information for an Industrial Wires multiblock (specifically, the commutator). Immersive Petroleum adds information about the multiblock's size using the 3d array returned from getStructureManual() in the IMultiblock interface, but the particular multiblock was returning a zero-length array, causing an ArrayIndexOutOfBounds exception. I figured this would be the correct place for the issue, as multiblocks should be at least 1 block wide in all directions (returning an array with at least 1 element for each dimension).
The text was updated successfully, but these errors were encountered: