From e7e2f16df7040ecdcc166829c609c45cc86ebc18 Mon Sep 17 00:00:00 2001 From: Amber Sienna Date: Sun, 22 Mar 2020 12:39:02 +0000 Subject: [PATCH] Attempted NPE fix for new Sulph gen --- World/Abyss.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/World/Abyss.cs b/World/Abyss.cs index 9f4328e1de..9ab0758d4c 100644 --- a/World/Abyss.cs +++ b/World/Abyss.cs @@ -304,7 +304,7 @@ namespace CalamityMod.World } for (int y = yStart + 35; y < yStart + 180; y++) { - if (Main.tile[trueX, y].type != (ushort)ModContent.TileType() || + if (CalamityUtils.ParanoidTileRetrieval(trueX, y).type != (ushort)ModContent.TileType() || !Main.tile[trueX, y].active()) { Main.tile[trueX, y] = new Tile()