return whichever;
}
+ public static ushort RainHeight2DMap(this IMapChunk mapChunk, int x, int y, int chunkSize = 32)
+ {
+ int index = y % chunkSize * chunkSize + x % chunkSize;
+ return mapChunk.RainHeightMap[index];
+ }
/// <summary>
return arbBlockIDTable;
}
-
+ public static Mod Self(this ICoreClientAPI ownApi)
+ {
+ AutomapMod ownMod = ownApi.ModLoader.GetModSystem<AutomapMod>( );
+ return ownMod.Mod;
+ }
}
}