From 81ef3bd0609ce6a930d4313b750a5e02b67de435 Mon Sep 17 00:00:00 2001 From: Mortis3 <53282720+DylanDoe21@users.noreply.github.com> Date: Sat, 21 Jan 2023 17:26:11 -0500 Subject: [PATCH] astral fix i think? --- World/AstralBiome.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/World/AstralBiome.cs b/World/AstralBiome.cs index c86ba6d4f1..540370ae57 100644 --- a/World/AstralBiome.cs +++ b/World/AstralBiome.cs @@ -129,10 +129,10 @@ namespace CalamityMod.World int xLimit = Main.maxTilesX / 2; //limit the astral biome so it cant place past the dungeon - int x = Abyss.AtLeftSideOfWorld ? rand.Next(WorldGen.dungeonX + 150, xLimit) : rand.Next(xLimit, WorldGen.dungeonX - 150); + int x = Abyss.AtLeftSideOfWorld ? rand.Next(650, xLimit) : rand.Next(xLimit, 650); while ((float)x > (float)Main.spawnTileX - worldEdgeMargin && (float)x < (float)Main.spawnTileX + worldEdgeMargin) { - x = Abyss.AtLeftSideOfWorld ? rand.Next(WorldGen.dungeonX + 150, xLimit) : rand.Next(xLimit, WorldGen.dungeonX - 150); + x = Abyss.AtLeftSideOfWorld ? rand.Next(650, xLimit) : rand.Next(xLimit, Main.maxTilesX - 650); } //world surface = 920 large 740 medium 560 small int y = (int)(Main.worldSurface * 0.5); //Large = 522, Medium = 444, Small = 336