This commit is contained in:
Exidex 2017-04-15 21:30:50 +03:00
parent bf97331139
commit ed06bb8850

View file

@ -144,6 +144,9 @@ public class GT_Block_Machines extends GT_Generic_Block implements IDebugableBlo
*/
@Override
public boolean canConnectRedstone(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing side) {
if (side == null ) {
return false;
}
IGregTechTileEntity gregTechTileEntity = getGregTile(world, pos);
return gregTechTileEntity != null && gregTechTileEntity.canOutputRedstone((byte) side.getOpposite().getIndex());
}