JimboPanda12
Terrarian
I tried to do:
When I tried to generate a new world, the game crashed saying:
Code:
for (int k = 0; k < 50; k++)
{
WorldGen.TileRunner(WorldGen.genRand.Next(0, Main.maxTilesX), WorldGen.genRand.Next((int)WorldGen.rockLayerHigh (int)WorldGen.rockLayerLow), (double)WorldGen.genRand.Next(6, 8), WorldGen.genRand.Next(6, 8), mod.TileType("PandaBlockOre"), false, 0f, 0f, false, true);
}
When I tried to generate a new world, the game crashed saying:
'minValue' cannot be greater than maxValue.
Parameter name: minValue
at System.Random.Next(Int32 minValue, Int32 maxValue)
at PandaMod.ModWord.<ModifyWorldGenTasks>b__1(GenerationProgress progress)
at Terraria.GameContent.Generation.PassLegacy.Apply(GenerationProgress progress)
at Terraria.World.Generation.WorldGenerator.GenerateWorld(GenerationProgress progress)
at Terraria.WorldGen.generateWorld(Int32 seed, GenerationProgress customProgressObject)
at Terraria.WorldGen.do_worldGenCallBack(Object threadContext)
at Terraria.WorldGen.worldGenCallBack(Object threadContext)