Definition at line 41857 of file WorldGen.cs.
41858 {
41860 {
41861 return;
41862 }
41863 bool flag = true;
41864 for (
int i = x - 3;
i < x + 3;
i++)
41865 {
41866 for (
int j = y - 2;
j <= y;
j++)
41867 {
41868 if (Main.tile[i,
j] ==
null)
41869 {
41870 Main.tile[
i,
j] =
new Tile();
41871 }
41872 if (Main.tile[i,
j].active())
41873 {
41874 flag = false;
41875 }
41876 }
41877 if (Main.tile[i, y + 1] == null)
41878 {
41879 Main.tile[
i, y + 1] =
new Tile();
41880 }
41881 if (!
SolidTile2(i, y + 1) && (!Main.tile[i, y + 1].nactive() || !Main.tileSolidTop[Main.tile[i, y + 1].type] || Main.tile[i, y + 1].frameY != 0))
41882 {
41883 flag = false;
41884 }
41885 }
41886 if (!flag)
41887 {
41888 return;
41889 }
41890 int num = 0;
41891 for (
int k = x - 3;
k < x + 3;
k++)
41892 {
41894 for (
int l = y - 2;
l <= y;
l++)
41895 {
41896 Main.tile[
k,
l].active(active:
true);
41898 Main.tile[
k,
l].frameX = (
short)num;
41899 Main.tile[
k,
l].type =
type;
41901 }
41902 num += 18;
41903 }
41904 }
static bool SolidTile2(Tile testTile)
References Terraria.Main.maxTilesX, Terraria.Main.maxTilesY, Terraria.DataStructures.Tile, Terraria.Main.tile, Terraria.Main.tileSolidTop, and System.type.