52099 {
52100 Chest.CreateChest(x - 1, y - 1, id);
52101 for (int i = -1; i <= 1; i++)
52102 {
52103 for (
int j = -1;
j <= 0;
j++)
52104 {
52105 if (Main.tile[x + i, y +
j] ==
null)
52106 {
52107 Main.tile[x + i, y +
j] =
default(
Tile);
52108 }
52109 }
52110 }
52111 short num = (short)(style * 54);
52112 Main.tile[x - 1, y - 1].active(active:
true);
52113 Main.tile[x - 1, y - 1].frameY = 0;
52114 Main.tile[x - 1, y - 1].frameX =
num;
52115 Main.tile[x - 1, y - 1].type = type;
52116 Main.tile[x, y - 1].active(active:
true);
52117 Main.tile[x, y - 1].frameY = 0;
52118 Main.tile[x, y - 1].frameX = (short)(
num + 18);
52119 Main.tile[x, y - 1].type = type;
52120 Main.tile[x + 1, y - 1].active(active:
true);
52121 Main.tile[x + 1, y - 1].frameY = 0;
52122 Main.tile[x + 1, y - 1].frameX = (short)(
num + 36);
52123 Main.tile[x + 1, y - 1].type = type;
52124 Main.tile[x - 1, y].active(active:
true);
52125 Main.tile[x - 1, y].frameY = 18;
52126 Main.tile[x - 1, y].frameX =
num;
52127 Main.tile[x - 1, y].type = type;
52128 Main.tile[x, y].active(active:
true);
52129 Main.tile[x, y].frameY = 18;
52130 Main.tile[x, y].frameX = (short)(
num + 18);
52131 Main.tile[x, y].type = type;
52132 Main.tile[x + 1, y].active(active:
true);
52133 Main.tile[x + 1, y].frameY = 18;
52134 Main.tile[x + 1, y].frameX = (short)(
num + 36);
52135 Main.tile[x + 1, y].type = type;
52136 }