Attempted NPE fix for new Sulph gen

This commit is contained in:
Amber Sienna committed 2020-03-22 12:39:02 +00:00
1 parent e76c63a99b
commit e7e2f16df7
1 file changed
+1 -1
+1 -1
View File
@@ -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<SulphurousSand>() ||
if (CalamityUtils.ParanoidTileRetrieval(trueX, y).type != (ushort)ModContent.TileType<SulphurousSand>() ||
!Main.tile[trueX, y].active())
{
Main.tile[trueX, y] = new Tile()