null pointer check in rendertank

This commit is contained in:
Flow86 2013-03-28 11:58:56 +01:00
parent 042f0a1ad8
commit e01ea820a0

View file

@ -47,7 +47,7 @@ public class RenderTank extends TileEntitySpecialRenderer {
String spriteSet = "/gui/items.png";
if (liquid.itemID < Block.blocksList.length) {
if (liquid.itemID < Block.blocksList.length && Block.blocksList[liquid.itemID] != null) {
spriteSet = "/terrain.png";
block.baseBlock = Block.blocksList[liquid.itemID];
}