public TileMatrixPatch( TileMatrix matrix, int index )
{
if ( !m_Enabled )
return;
string mapDataPath = Core.FindDataFile( "mapdif{0}.mul", index );
string mapIndexPath = Core.FindDataFile( "mapdifl{0}.mul", index );
if ( File.Exists( mapDataPath ) && File.Exists( mapIndexPath ) )
m_LandBlocks = PatchLand( matrix, mapDataPath, mapIndexPath );
string staDataPath = Core.FindDataFile( "stadif{0}.mul", index );
string staIndexPath = Core.FindDataFile( "stadifl{0}.mul", index );
string staLookupPath = Core.FindDataFile( "stadifi{0}.mul", index );
if ( File.Exists( staDataPath ) && File.Exists( staIndexPath ) && File.Exists( staLookupPath ) )
m_StaticBlocks = PatchStatics( matrix, staDataPath, staIndexPath, staLookupPath );
}