diff --git a/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs b/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs index 33b61d7e32..6efe0718d0 100644 --- a/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs +++ b/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs @@ -79,6 +79,7 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings "CrabBar", "Ein", "Heart Plus Up!", + "Hugekraken", "Ian-1KV", "Lilac Olligoci", "LordMetarex", diff --git a/World/SulphurousSea.cs b/World/SulphurousSea.cs index df9046edfa..3268e447d4 100644 --- a/World/SulphurousSea.cs +++ b/World/SulphurousSea.cs @@ -363,7 +363,13 @@ namespace CalamityMod.World int depth = BlockDepth; int shallowWaterCaveCount = TotalCavesInShallowWater; int minCaveWidth = MinCaveWidth; + + // Large worlds typically have this property evaluate to 14.841, which is then ceiling'd to 15. + // XL worlds will have a value larger than 15... which will break the lower loops and go out of bounds. int maxCaveWidth = MaxCaveWidth; + if (maxCaveWidth > 15) + maxCaveWidth = 15; + ushort wallID = (ushort)ModContent.WallType(); for (int i = 2; i < shallowWaterCaveCount; i++) @@ -1369,7 +1375,7 @@ namespace CalamityMod.World if (Abyss.AtLeftSideOfWorld) return x; - return Main.maxTilesX - x; + return (Main.maxTilesX - 1) - x; } public static float CalculateDitherChance(int width, int top, int bottom, int x, int y)