BlockTankRenderer is prone to NullPointerExceptions if a Fluid is not null but has null IIcons
Cojomax99 opened this issue ยท 1 comments
If the Fluid is not null, but the stillIcon/flowingIcon values have not been set (and are thus null), then it will throw a NullPointerException like this one: http://paste.ubuntu.com/10822515/
An additional null check after getIcon is called should fix it.
https://github.com/skyboy/MineFactoryReloaded/blob/master/src/powercrystals/minefactoryreloaded/render/block/BlockTankRenderer.java#L180 is part of the crash also, because 218 calls that line to get the icon to render: https://github.com/skyboy/MineFactoryReloaded/blob/master/src/powercrystals/minefactoryreloaded/render/block/BlockTankRenderer.java#L218