Attempted NPE fix for new Sulph gen
This commit is contained in:
1 parent
e76c63a99b
commit
e7e2f16df7
1 file changed
+1
-1
+1
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user