Added super calls back in to re-enable attached capabilities.

This commit is contained in:
Sebastian Hartte
2016-10-01 01:24:20 +02:00
parent 882f240307
commit 754a1f1de3
2 changed files with 19 additions and 5 deletions
@@ -400,7 +400,9 @@ public class TileCableBus extends AEBaseTile implements AEMultiTile, ICustomColl
AEPartLocation partLocation = AEPartLocation.fromFacing( fromSide );
IPart part = getPart( partLocation );
return part != null && part.hasCapability( capabilityClass );
boolean result = part != null && part.hasCapability( capabilityClass );
return result || super.hasCapability( capabilityClass, fromSide );
}
@Override
@@ -410,7 +412,14 @@ public class TileCableBus extends AEBaseTile implements AEMultiTile, ICustomColl
AEPartLocation partLocation = AEPartLocation.fromFacing( fromSide );
IPart part = getPart( partLocation );
return part == null ? null : part.getCapability( capabilityClass );
T result = part == null ? null : part.getCapability( capabilityClass );
if( result != null )
{
return result;
}
return super.getCapability( capabilityClass, fromSide );
}
}