diff --git a/client/render/RenderBlocksWorkaround.java b/client/render/RenderBlocksWorkaround.java index 83a73d49..4c78755e 100644 --- a/client/render/RenderBlocksWorkaround.java +++ b/client/render/RenderBlocksWorkaround.java @@ -108,6 +108,16 @@ public class RenderBlocksWorkaround extends RenderBlocks rXPos = rXNeg = rYPos = rYNeg = rZPos = rZNeg = ico; } + public void setTexture(IIcon rYNeg, IIcon rYPos, IIcon rZNeg, IIcon rZPos, IIcon rXNeg, IIcon rXPos) + { + this.rXPos = rXPos; + this.rXNeg = rXNeg; + this.rYPos = rYPos; + this.rYNeg = rYNeg; + this.rZPos = rZPos; + this.rZNeg = rZNeg; + } + public boolean renderStandardBlockNoCalculations(Block b, int x, int y, int z) { Tessellator.instance.setBrightness( bXPos ); diff --git a/facade/FacadePart.java b/facade/FacadePart.java index 9509c4c6..81d7d02d 100644 --- a/facade/FacadePart.java +++ b/facade/FacadePart.java @@ -153,11 +153,22 @@ public class FacadePart implements IFacadePart rbw.calculations = false; rbw.faces = EnumSet.allOf( ForgeDirection.class ); - ((RenderBlocksWorkaround) renderer).setTexture( blk.getIcon( side.ordinal(), ib.getMetadata( randomItem.getItemDamage() ) ) ); + ((RenderBlocksWorkaround) renderer).setTexture( + blk.getIcon( ForgeDirection.DOWN.ordinal(), ib.getMetadata( randomItem.getItemDamage() ) ), + blk.getIcon( ForgeDirection.UP.ordinal(), ib.getMetadata( randomItem.getItemDamage() ) ), + blk.getIcon( ForgeDirection.NORTH.ordinal(), ib.getMetadata( randomItem.getItemDamage() ) ), + blk.getIcon( ForgeDirection.SOUTH.ordinal(), ib.getMetadata( randomItem.getItemDamage() ) ), + blk.getIcon( ForgeDirection.WEST.ordinal(), ib.getMetadata( randomItem.getItemDamage() ) ), + blk.getIcon( ForgeDirection.EAST.ordinal(), ib.getMetadata( randomItem.getItemDamage() ) ) ); } else { - instance.setTexture( blk.getIcon( side.ordinal(), ib.getMetadata( randomItem.getItemDamage() ) ) ); + instance.setTexture( blk.getIcon( ForgeDirection.DOWN.ordinal(), ib.getMetadata( randomItem.getItemDamage() ) ), + blk.getIcon( ForgeDirection.UP.ordinal(), ib.getMetadata( randomItem.getItemDamage() ) ), + blk.getIcon( ForgeDirection.NORTH.ordinal(), ib.getMetadata( randomItem.getItemDamage() ) ), + blk.getIcon( ForgeDirection.SOUTH.ordinal(), ib.getMetadata( randomItem.getItemDamage() ) ), + blk.getIcon( ForgeDirection.WEST.ordinal(), ib.getMetadata( randomItem.getItemDamage() ) ), + blk.getIcon( ForgeDirection.EAST.ordinal(), ib.getMetadata( randomItem.getItemDamage() ) ) ); } if ( busBounds == null )