diff --git a/World/DraedonStructures.cs b/World/DraedonStructures.cs index 0d90de7fd5..dbac9ccaf4 100644 --- a/World/DraedonStructures.cs +++ b/World/DraedonStructures.cs @@ -349,17 +349,17 @@ namespace CalamityMod.World int sunkenSeaY = 0; //copied the desert position code from the sunken sea's generation so the lab always generates within the sunken sea properly - for (int y = Main.maxTilesY - 200; y >= (Main.maxTilesY / 2) - 45; y--) + for (int y = Main.maxTilesY - 200; y >= Main.worldSurface; y--) { - if (Main.tile[placementPositionX, y].TileType == ModContent.TileType() || - Main.tile[placementPositionX, y].TileType == ModContent.TileType()) + if (Main.tile[placementPositionX, y].WallType == ModContent.WallType() || + Main.tile[placementPositionX, y].WallType == ModContent.WallType()) { - sunkenSeaY = y - 90; //offset so it generates nicely + sunkenSeaY = y - 80; //offset so it generates nicely break; } } - int placementPositionY = (int)(sunkenSeaY) - labHeight; + int placementPositionY = sunkenSeaY - labHeight; placementPoint = new Point(placementPositionX, placementPositionY); Vector2 schematicSize = new Vector2(schematic.GetLength(0), schematic.GetLength(1)); diff --git a/World/MechanicShed.cs b/World/MechanicShed.cs index fc28be909d..7a756c2c9d 100644 --- a/World/MechanicShed.cs +++ b/World/MechanicShed.cs @@ -17,7 +17,7 @@ namespace CalamityMod.World string mapKey = MechanicShedKey; var schematic = TileMaps[mapKey]; - int placementPositionX = WorldGen.genRand.Next(WorldGen.snowOriginLeft + 100, WorldGen.snowOriginRight - 100); + int placementPositionX = WorldGen.genRand.Next(WorldGen.snowOriginLeft + 200, WorldGen.snowOriginRight - 200); int placementPositionY = (int)Main.worldSurface - (Main.maxTilesY / 8); bool foundValidGround = false; @@ -35,7 +35,7 @@ namespace CalamityMod.World } } - Point placementPoint = new Point(placementPositionX, placementPositionY + 3); + Point placementPoint = new Point(placementPositionX, placementPositionY + 6); Vector2 schematicSize = new Vector2(schematic.GetLength(0), schematic.GetLength(1)); SchematicAnchor anchorType = SchematicAnchor.BottomCenter;