tModLoader
The Amulet Of Many Minions: Combat Pets!
Small Bug with advanced world gen
So this crash happens sometime when generation a new world that is not one of the vanilla world size. Again it happens only some of the time but I thought if I report it and it can be fixed, it would only help thanks!

Logs:
[14:29:06.014] [WorldGen/WARN] [tML]: Silently Caught Exception:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at AmuletOfManyMinions.ChestLootInfo.GetItemForChest(Chest chest) in AmuletOfManyMinionsWorldGen.cs:line 56
at AmuletOfManyMinions.AmuletOfManyMinionsWorldGen.PostWorldGen() in AmuletOfManyMinionsWorldGen.cs:line 185
at Terraria.ModLoader.SystemLoader.PostWorldGen() in tModLoader\Terraria\ModLoader\SystemLoader.cs:line 440
at Terraria.WorldGen.GenerateWorld_RunTasksAndFinish(Int32 seed, Stopwatch generationStopwatch, GenerationProgress customProgressObject) in tModLoader\Terraria\WorldGen.cs:line 14028
at DMD<System.Void Terraria.WorldGen:GenerateWorld(System.Int32, Terraria.WorldBuilding.GenerationProgress)>(Int32 seed, GenerationProgress customProgressObject)
at SyncProxy<System.Void Terraria.WorldGen:GenerateWorld(System.Int32, Terraria.WorldBuilding.GenerationProgress)>(Int32 , GenerationProgress )
at DMD<System.Void Terraria.WorldGen:do_worldGenCallBack(System.Object)>(Object threadContext)
at AdvancedWorldGen.UI.UIChanger.<>c__DisplayClass10_0.<ThreadifyWorldGen>b__0() in AdvancedWorldGen\UI\UIChanger.cs:line 38
at System.Threading.Thread.StartHelper.Callback(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

[14:29:06.017] [WorldGen/WARN] [tML]: Silently Caught Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at AdvancedWorldGen.BetterVanillaWorldGen.Replacer.ILUnreplace() in AdvancedWorldGen\BetterVanillaWorldGen\Replacer.IL.cs:line 31
at AdvancedWorldGen.UI.UIChanger.EmergencySaving(String suffix) in AdvancedWorldGen\UI\UIChanger.cs:line 61
at AdvancedWorldGen.UI.UIChanger.<>c__DisplayClass10_0.<ThreadifyWorldGen>b__0() in AdvancedWorldGen\UI\UIChanger.cs:line 38
at System.Threading.Thread.StartHelper.Callback(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

[14:29:06.019] [WorldGen/ERROR] [tML]: Unhandled Exception
System.NullReferenceException: Object reference not set to an instance of an object.
at AdvancedWorldGen.BetterVanillaWorldGen.Replacer.ILUnreplace() in AdvancedWorldGen\BetterVanillaWorldGen\Replacer.IL.cs:line 31
at AdvancedWorldGen.UI.UIChanger.EmergencySaving(String suffix) in AdvancedWorldGen\UI\UIChanger.cs:line 61
at AdvancedWorldGen.UI.UIChanger.<>c__DisplayClass10_0.<ThreadifyWorldGen>b__0() in AdvancedWorldGen\UI\UIChanger.cs:line 46
at System.Threading.Thread.StartHelper.Callback(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()