From 57d2d78b0f66d737d92f3c893d20f9da9c4972e4 Mon Sep 17 00:00:00 2001 From: gishicrafter Date: Wed, 5 Dec 2012 00:05:40 +0900 Subject: [PATCH] Use liquid block metadata for rendering --- common/buildcraft/factory/render/RenderRefinery.java | 2 +- common/buildcraft/transport/render/RenderPipe.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/buildcraft/factory/render/RenderRefinery.java b/common/buildcraft/factory/render/RenderRefinery.java index 392e6f5a..459d428b 100644 --- a/common/buildcraft/factory/render/RenderRefinery.java +++ b/common/buildcraft/factory/render/RenderRefinery.java @@ -83,7 +83,7 @@ public class RenderRefinery extends TileEntitySpecialRenderer implements IInvent // Retrieve the texture depending on type of item. if (liquidId < Block.blocksList.length && Block.blocksList[liquidId] != null) - block.texture = Block.blocksList[liquidId].blockIndexInTexture; + block.texture = Block.blocksList[liquidId].getBlockTextureFromSideAndMetadata(0, damage); else if (Item.itemsList[liquidId] != null) block.texture = Item.itemsList[liquidId].getIconFromDamage(damage); diff --git a/common/buildcraft/transport/render/RenderPipe.java b/common/buildcraft/transport/render/RenderPipe.java index 39f0f7d1..7629b020 100644 --- a/common/buildcraft/transport/render/RenderPipe.java +++ b/common/buildcraft/transport/render/RenderPipe.java @@ -98,7 +98,7 @@ public class RenderPipe extends TileEntitySpecialRenderer { BlockInterface block = new BlockInterface(); if (liquidId < Block.blocksList.length && Block.blocksList[liquidId] != null) - block.texture = Block.blocksList[liquidId].blockIndexInTexture; + block.texture = Block.blocksList[liquidId].getBlockTextureFromSideAndMetadata(0, meta); else block.texture = Item.itemsList[liquidId].getIconFromDamage(meta);