Minefactory Reloaded

Minefactory Reloaded

23M Downloads

BlockTankRenderer is prone to NullPointerExceptions if a Fluid is not null but has null IIcons

Cojomax99 opened this issue ยท 1 comments

commented

https://github.com/skyboy/MineFactoryReloaded/blob/master/src/powercrystals/minefactoryreloaded/render/block/BlockTankRenderer.java#L73

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.