Fixed liquid icon check to actually catch that edge case. (h/t Player)

This commit is contained in:
SirSengir 2013-04-12 21:50:11 +02:00
parent 7511a1f767
commit a21dfb7b5e

View file

@ -69,7 +69,7 @@ public class GuiCombustionEngine extends GuiEngine {
textureSheet = liquid.canonical().getTextureSheet(); textureSheet = liquid.canonical().getTextureSheet();
liquidIcon = liquid.canonical().getRenderingIcon(); liquidIcon = liquid.canonical().getRenderingIcon();
} else { } else {
if (liquid.itemID < Block.blocksList.length && Block.blocksList[liquid.itemID] != null) { if (liquid.itemID < Block.blocksList.length && Block.blocksList[liquid.itemID].blockID > 0) {
liquidIcon = Block.blocksList[liquid.itemID].getBlockTextureFromSide(0); liquidIcon = Block.blocksList[liquid.itemID].getBlockTextureFromSide(0);
textureSheet = "/terrain.png"; textureSheet = "/terrain.png";
} else { } else {