null pointer check in rendertank
This commit is contained in:
parent
042f0a1ad8
commit
e01ea820a0
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue