Merge pull request #486 from gishicrafter/patch-3

Use  liquid block metadata for rendering refinery and pipe
This commit is contained in:
SirSengir 2012-12-04 08:38:22 -08:00
commit 7b6b21a40d
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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);