Merge pull request #486 from gishicrafter/patch-3
Use liquid block metadata for rendering refinery and pipe
This commit is contained in:
commit
7b6b21a40d
2 changed files with 2 additions and 2 deletions
|
@ -83,7 +83,7 @@ public class RenderRefinery extends TileEntitySpecialRenderer implements IInvent
|
||||||
|
|
||||||
// Retrieve the texture depending on type of item.
|
// Retrieve the texture depending on type of item.
|
||||||
if (liquidId < Block.blocksList.length && Block.blocksList[liquidId] != null)
|
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)
|
else if (Item.itemsList[liquidId] != null)
|
||||||
block.texture = Item.itemsList[liquidId].getIconFromDamage(damage);
|
block.texture = Item.itemsList[liquidId].getIconFromDamage(damage);
|
||||||
|
|
|
@ -98,7 +98,7 @@ public class RenderPipe extends TileEntitySpecialRenderer {
|
||||||
|
|
||||||
BlockInterface block = new BlockInterface();
|
BlockInterface block = new BlockInterface();
|
||||||
if (liquidId < Block.blocksList.length && Block.blocksList[liquidId] != null)
|
if (liquidId < Block.blocksList.length && Block.blocksList[liquidId] != null)
|
||||||
block.texture = Block.blocksList[liquidId].blockIndexInTexture;
|
block.texture = Block.blocksList[liquidId].getBlockTextureFromSideAndMetadata(0, meta);
|
||||||
else
|
else
|
||||||
block.texture = Item.itemsList[liquidId].getIconFromDamage(meta);
|
block.texture = Item.itemsList[liquidId].getIconFromDamage(meta);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue