Salut a tous,
J'ai essayer d'jaouter un minerai a la generation de la map, sa a fonctionné, mais quand j'en ai rajouté un deuxième tout plante lors de la création du monde : stackoverflowerror.
Comment resoudre ce problème ?
voici mon code
public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
{
for(int i = 0; i < 100; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(100);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_Size.Gaz.blockID, 20)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int a = 0; a < 100; a++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(100);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_Size.Aceras.blockID, 20)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}