172 {
174 {
175 return;
176 }
177 int num = callX;
178 int num2 = callY;
179 Tile tileSafely = Framing.GetTileSafely(callX, callY);
180 num -= tileSafely.frameX / 18 % 3;
181 num2 -= tileSafely.frameY / 18 % 4;
182 bool flag = false;
183 for (
int i = num;
i < num + 3;
i++)
184 {
185 for (int j = num2; j < num2 + 4; j++)
186 {
187 Tile tile = Main.tile[
i, j];
188 if (!tile.active() || tile.type != 475)
189 {
190 flag = true;
191 }
192 }
193 }
194 if (!
WorldGen.SolidTileAllowBottomSlope(num, num2 + 4) || !
WorldGen.SolidTileAllowBottomSlope(num + 1, num2 + 4) || !
WorldGen.SolidTileAllowBottomSlope(num + 2, num2 + 4))
195 {
196 flag = true;
197 }
198 if (!flag)
199 {
200 return;
201 }
204 WorldGen.destroyObject = true;
205 for (int k = num; k < num + 3; k++)
206 {
207 for (int l = num2; l < num2 + 4; l++)
208 {
209 if (Main.tile[k, l].active() && Main.tile[k, l].type == 475)
210 {
212 }
213 }
214 }
215 WorldGen.destroyObject = false;
216 }
static void Kill(int x, int y)