From bbae99e1563b4c2e73f028f6489e5973c2d986d6 Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Mon, 12 Feb 2024 19:47:14 -0600 Subject: [PATCH] Astral Monolith spawning now acounts for Dressers as well as modded containers and torches --- World/AstralBiome.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/World/AstralBiome.cs b/World/AstralBiome.cs index 76763c0a22..e11eade9a3 100644 --- a/World/AstralBiome.cs +++ b/World/AstralBiome.cs @@ -453,9 +453,8 @@ namespace CalamityMod.World y += 5; } - if (Main.tile[x, y].HasTile || Main.tile[x, y].WallType > 0 && (!CalamityUtils.TileActiveAndOfType(x, y, TileID.Torches) && - !CalamityUtils.TileActiveAndOfType(x, y, TileID.Containers) && !CalamityUtils.TileActiveAndOfType(x, y, TileID.Containers2) - && (magicStorage is not null && MSTilesToAvoid.Contains(Main.tile[x, y].TileType)))) //AVOID HOUSES + if (Main.tile[x, y].HasTile || Main.tile[x, y].WallType > 0 && !TileID.Sets.Torch[Main.tile[x,y].TileType] && !TileID.Sets.IsAContainer[Main.tile[x, y].TileType] + && (magicStorage is not null && MSTilesToAvoid.Contains(Main.tile[x, y].TileType))) //AVOID HOUSES { bool place = true; SchematicManager.PlaceSchematic>(SchematicManager.AstralBeaconKey, new Point(x, y - 5), SchematicAnchor.Center, ref place);