Fixed liquid icon check to actually catch that edge case. (h/t Player)
This commit is contained in:
parent
7511a1f767
commit
a21dfb7b5e
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue