50557 {
50558 if (Main.tile[x, y].active() && Main.tile[x, y].type == 334)
50559 {
50560 int frameY = Main.tile[x, y].frameY;
50561 int num = 1;
50562 frameY /= 18;
50563 while (num > frameY)
50564 {
50565 y++;
50566 frameY = Main.tile[x, y].frameY;
50567 frameY /= 18;
50568 }
50569 while (num < frameY)
50570 {
50571 y--;
50572 frameY = Main.tile[x, y].frameY;
50573 frameY /= 18;
50574 }
50575 int num2 = Main.tile[x, y].frameX;
50577 while (
num2 >= 5000)
50578 {
50581 }
50583 {
50585 }
50586 bool flag = false;
50588 {
50590 flag = true;
50591 }
50593 int num4 = Main.tile[x, y].frameX;
50595 if (Main.netMode == 1)
50596 {
50597 NetMessage.SendData(17, -1, -1, null, 0, x, y, 1f);
50598 }
50599 if (Main.netMode == 1)
50600 {
50601 NetMessage.SendData(17, -1, -1, null, 0, x + 1, y, 1f);
50602 }
50603 while (
num4 >= 5000)
50604 {
50606 }
50607 Main.blockMouse = true;
50610 if (flag)
50611 {
50614 }
50617 if (Main.netMode == 1)
50618 {
50619 NetMessage.SendTileSquare(-1, x, y);
50620 }
50621 if (Main.netMode == 1)
50622 {
50623 NetMessage.SendTileSquare(-1, x + 1, y);
50624 }
50627 {
50629 Main.mouseItem.SetDefaults();
50630 }
50632 {
50634 }
50637 }
50638 }
void SetDefaults(int Type=0)