Definition at line 44382 of file WorldGen.cs.
44383 {
44384 int num = 0;
44385 int type = Main.tile[
i,
j].type;
44386 if (Main.tile[i,
j].active())
44387 {
44389 {
44390 num = 1;
44391 }
44393 {
44394 num = 2;
44395 }
44397 {
44398 num = 3;
44399 }
44401 {
44402 num = 4;
44403 }
44405 {
44406 num = 5;
44407 }
44408 }
44409 if (num <= 0)
44410 {
44411 return;
44412 }
44415 for (
num2 = Main.tile[i,
j].frameX / 18;
num2 >= 3;
num2 -= 3)
44416 {
44417 }
44419 {
44421 }
44423 num3 += Main.tile[
i,
j].frameY / 18 * -1;
44425 {
44427 {
44428 if (Main.tile[
k,
l] ==
null)
44429 {
44430 Main.tile[
k,
l] =
new Tile();
44431 }
44432 if (Main.tile[
k,
l].active() && Main.tile[
k,
l].type ==
type)
44433 {
44434 Main.tile[
k,
l].type = 34;
44435 Main.tile[
k,
l].frameY = (
short)(Main.tile[
k,
l].frameY + num * 54);
44436 }
44437 }
44438 }
44439 }
References Terraria.DataStructures.Tile, Terraria.Main.tile, and System.type.