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
1 changed files with 4 additions and 0 deletions

View File

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