My game was working perfectly fine last night until my tModLoader updated on steam, and this error has never occured before.
Now whenever I try to load into a world, my game immediately crashes, saying I've run out of ram even though I checked and I have plenty of ram available when this error occurs. I'll post the tmod logs in the comments.
The only thing that changed is the tmod update. Same mods, same ram usage, etc. Would someone be able to help me with this?
The error log is as follows:
System.ArgumentOutOfRangeException: minValue must be less than maxValue (Parameter 'minValue')
at Terraria.Utilities.UnifiedRandom.Next(Int32 minValue, Int32 maxValue) in tModLoader\Terraria\Utilities\UnifiedRandom.cs:line 103
at Terraria.Cloud.addCloud() in tModLoader\Terraria\Cloud.cs:line 47
at Terraria.Cloud.resetClouds() in tModLoader\Terraria\Cloud.cs:line 35
at DMD<DMD<>?45200766::Terraria.Main::DrawBG>(Main this)
at SyncProxy<System.Void Terraria.Main:DrawBG()>(Main )
at DMD<DMD<>?34712678::Terraria.Main::DoDraw>(Main this, GameTime gameTime)
at SyncProxy<System.Void Terraria.Main:DoDraw(Microsoft.Xna.Framework.GameTime)>(Main , GameTime )
at Terraria.Main.Draw_Inner(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 53228
at Terraria.Main.Draw(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 53215
at Microsoft.Xna.Framework.Game.Tick() in D:\a\tModLoader\tModLoader\FNA\src\Game.cs:line 562
at Microsoft.Xna.Framework.Game.RunLoop() in D:\a\tModLoader\tModLoader\FNA\src\Game.cs:line 878
at Microsoft.Xna.Framework.Game.Run() in D:\a\tModLoader\tModLoader\FNA\src\Game.cs:line 419
at Terraria.Program.RunGame() in tModLoader\Terraria\Program.cs:line 266
[05:47:39.758] [Main Thread/DEBUG] [TerrariaSteamClient]: Send: shutdown