Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[crash] minValue must be less than maxValue #14

Open
piousminion opened this issue Jul 25, 2018 · 0 comments
Open

[crash] minValue must be less than maxValue #14

piousminion opened this issue Jul 25, 2018 · 0 comments

Comments

@piousminion
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant