Definition at line 35684 of file WorldGen.cs.
35685 {
35686 int num = y - 1;
35687 bool flag = true;
35688 for (
int i = x;
i < x + 2;
i++)
35689 {
35690 for (
int j = num;
j < num + 3;
j++)
35691 {
35692 if (Main.tile[i,
j].active() || Main.tile[i,
j].wall == 0)
35693 {
35694 flag = false;
35695 break;
35696 }
35697 }
35698 }
35699 if (!flag)
35700 {
35701 return;
35702 }
35703 int num2 = style * 36;
35705 for (
int k = x;
k < x + 2;
k++)
35706 {
35707 for (
int l = num;
l < num + 3;
l++)
35708 {
35709 Main.tile[
k,
l].active(active:
true);
35710 Main.tile[
k,
l].type =
type;
35711 Main.tile[
k,
l].frameX = (
short)(
num2 + 18 * (
k - x));
35712 Main.tile[
k,
l].frameY = (
short)(
num3 + 18 * (
l - num));
35713 }
35714 }
35715 }
References Terraria.Main.tile, and System.type.