Fixes #2396 by using channels=0 for unpowered cables.

This commit is contained in:
Sebastian Hartte 2016-10-02 00:41:01 +02:00
parent 0408aadabc
commit fdee124875

View file

@ -390,6 +390,10 @@ public class PartCable extends AEBasePart implements IPartCable
public int getChannelsOnSide( EnumFacing side ) public int getChannelsOnSide( EnumFacing side )
{ {
if( !powered )
{
return 0;
}
return this.channelsOnSide[side.ordinal()]; return this.channelsOnSide[side.ordinal()];
} }