Definition at line 35814 of file WorldGen.cs.
35815 {
35816 int num = x - 1;
35817 bool flag = true;
35818 for (
int i = num;
i < num + 3;
i++)
35819 {
35820 for (
int j = y;
j < y + 2;
j++)
35821 {
35822 if (Main.tile[i,
j].active() || Main.tile[i,
j].wall == 0)
35823 {
35824 flag = false;
35825 break;
35826 }
35827 }
35828 }
35829 if (!flag)
35830 {
35831 return;
35832 }
35834 int num3 = style * 36;
35835 for (
int k = num;
k < num + 3;
k++)
35836 {
35837 for (
int l = y;
l < y + 2;
l++)
35838 {
35839 Main.tile[
k,
l].active(active:
true);
35840 Main.tile[
k,
l].type =
type;
35841 Main.tile[
k,
l].frameX = (
short)(
num2 + 18 * (
k - num));
35842 Main.tile[
k,
l].frameY = (
short)(
num3 + 18 * (
l - y));
35843 }
35844 }
35845 }
References Terraria.Main.tile, and System.type.