API Update.

This commit is contained in:
AlgorithmX2
2014-01-03 12:28:52 -06:00
parent 1ff35ba8ec
commit 3220a2e07c
8 changed files with 27 additions and 14 deletions
+2 -1
View File
@@ -30,6 +30,7 @@ import appeng.block.AEBaseBlock;
import appeng.client.texture.CableBusTextures;
import appeng.client.texture.FlipableIcon;
import appeng.client.texture.TaughtIcon;
import appeng.items.parts.ItemPart;
import appeng.me.GridAccessException;
import appeng.me.helpers.AENetworkProxy;
import appeng.parts.AEBasePart;
@@ -46,7 +47,7 @@ public class PartCable extends AEBasePart implements IPartCable
public PartCable(Class c, ItemStack is) {
super( c, is );
proxy.setIdlePowerUsage( 1.0 / 16.0 );
proxy.myColor = AEColor.fromCable( is );
proxy.myColor = AEColor.values()[((ItemPart) is.getItem()).varientOf( is.getItemDamage() )];
}
public Icon getGlassTexture(AEColor c)