JavidPack / TerraCustom

Custom world generation for Terraria.
https://forums.terraria.org/index.php?threads/terracustom-for-1-3.35346/
87 stars 15 forks source link

[crash] minValue must be less than maxValue #14

Open piousminion opened 6 years ago

piousminion commented 6 years ago

OS: Windows 10 TerraCustom: 0.5.3.1 Terraria: 1.3.5.3 tModLoader: 0.10.1.5 Mods enabled: WorldGen Previewer

myConfig

Parameter name: minValue
   at Terraria.Utilities.UnifiedRandom.Next(Int32 minValue, Int32 maxValue)
   at Terraria.WorldGen.<>c.<generateWorld>b__261_27(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)

Suggestion: if (minValue >= maxValue) { minValue = Maxvalue - 1; }

Any help would be greatly appreciated.