TechReborn / StevesCarts

A carttastic mod adding a near infinite number of carts possible to the game, through the creation of modular carts.
MIT License
30 stars 25 forks source link

Fluid Manager is still bugged #82

Closed secondfry closed 7 years ago

secondfry commented 7 years ago

Seems to be related to bottom of Fluid Manager. Video of the crash on YouTube. https://pastebin.com/Kyd06SPV

Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
        at vswe.stevescarts.blocks.tileentities.TileEntityLiquid.isTankValid(TileEntityLiquid.java:211) ~[TileEntityLiquid.class:?]
private boolean isTankValid(final int tankId, int sideId) {
    sideId -= 1;
    return (layoutType != 1 || tankId == sideId) && (layoutType != 2 || color[sideId] == color[tankId]);
}