Fix the generation of ore, Added compatibility with IC2