From a21dfb7b5e76b780905ccac7997209b731146716 Mon Sep 17 00:00:00 2001 From: SirSengir Date: Fri, 12 Apr 2013 21:50:11 +0200 Subject: [PATCH] Fixed liquid icon check to actually catch that edge case. (h/t Player) --- common/buildcraft/energy/gui/GuiCombustionEngine.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/buildcraft/energy/gui/GuiCombustionEngine.java b/common/buildcraft/energy/gui/GuiCombustionEngine.java index ca151885..a3ec9fea 100644 --- a/common/buildcraft/energy/gui/GuiCombustionEngine.java +++ b/common/buildcraft/energy/gui/GuiCombustionEngine.java @@ -69,7 +69,7 @@ public class GuiCombustionEngine extends GuiEngine { textureSheet = liquid.canonical().getTextureSheet(); liquidIcon = liquid.canonical().getRenderingIcon(); } 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); textureSheet = "/terrain.png"; } else {