Oops make sure there's actually a tile there if it hits the too low failsafe
This commit is contained in:
1 parent
dd90bf3d81
commit
eea99847b0
1 file changed
+2
@@ -271,6 +271,8 @@ namespace CalamityMod.World
|
||||
Point pylonPlace = new Point(GenVars.dungeonSide == 1 ? (biomeStart + biomeMiddle) / 2 : (biomeMiddle + biomeEdge) / 2, Main.maxTilesY - 150);
|
||||
while (!Main.tile[pylonPlace].HasTile && pylonPlace.Y < Main.maxTilesY - 75)
|
||||
pylonPlace.Y++;
|
||||
if (!Main.tile[pylonPlace].HasTile)
|
||||
Main.tile[pylonPlace].TileType = (ushort)ModContent.TileType<BrimstoneSlag>();
|
||||
//make sure there's space to place it
|
||||
for (int i = pylonPlace.X - 1; i <= pylonPlace.X + 1; i++)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user