Fixed Crafting CPU Drops, and Render of Crafting Monitor.

This commit is contained in:
AlgorithmX2
2014-07-11 15:06:42 -05:00
parent 131538349a
commit c301819b5d
+8 -1
View File
@@ -57,6 +57,11 @@ public class BlockCraftingUnit extends AEBaseBlock
public int getDamageValue(World w, int x, int y, int z) public int getDamageValue(World w, int x, int y, int z)
{ {
int meta = w.getBlockMetadata( x, y, z ); int meta = w.getBlockMetadata( x, y, z );
return damageDropped( meta );
}
@Override
public int damageDropped( int meta )
{
return meta & 3; return meta & 3;
} }
@@ -77,7 +82,9 @@ public class BlockCraftingUnit extends AEBaseBlock
@Override @Override
public void setRenderStateByMeta(int itemDamage) public void setRenderStateByMeta(int itemDamage)
{ {
getRendererInstance().setTemporaryRenderIcon( getIcon( 0, itemDamage ) ); IIcon front = getIcon( ForgeDirection.SOUTH.ordinal(), itemDamage );
IIcon other = getIcon( ForgeDirection.NORTH.ordinal(), itemDamage );
getRendererInstance().setTemporaryRenderIcons(other, other, front, other, other, other);
} }
@Override @Override