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
+9 -2
View File
@@ -57,9 +57,14 @@ public class BlockCraftingUnit extends AEBaseBlock
public int getDamageValue(World w, int x, int y, int z)
{
int meta = w.getBlockMetadata( x, y, z );
return damageDropped( meta );
}
@Override
public int damageDropped( int meta )
{
return meta & 3;
}
@Override
public String getUnlocalizedName(ItemStack is)
{
@@ -77,7 +82,9 @@ public class BlockCraftingUnit extends AEBaseBlock
@Override
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