Advertisement
Guest User

[EE] On Block Message Code

a guest
Jul 24th, 2015
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.93 KB | None | 0 0
  1. int layer = m.GetInt(0);
  2.                         int posX = m.GetInt(1);
  3.                         int posY = m.GetInt(2);
  4.                         int bID = m.GetInt(3);
  5.                         string placer = players[m.GetInt(4)];
  6.  
  7.             // getNoEdit() is an invoke method that returns the richTextBox Lines
  8.                         if (getNoEdit().Contains(placer) && checkBox1.Checked)
  9.                         {
  10.                             if (world[layer, posX, posY] == 0)
  11.                             {
  12.                                 con.Send(worldkey, layer, posX, posY, 0);
  13.                                 Thread.Sleep(15);
  14.                             } // checkBox3 is "Starter Blocks Only" isStarterBlock code just goes through a list of hardcoded block id's and see's if it matches the input parameter.
  15.                             else if (checkBox3.Checked && isStarterBlock((int)world[layer, posX, posY]))
  16.                             {
  17.                                 con.Send(worldkey, layer, posX, posY, world[layer, posX, posY]);
  18.                                 Thread.Sleep(15);
  19.                             }
  20.                             else if (!checkBox3.Checked)
  21.                             {
  22.                                 con.Send(worldkey, layer, posX, posY, world[layer, posX, posY]);
  23.                                 Thread.Sleep(15);
  24.                             }
  25.                             else if (layer == 0)
  26.                             {
  27.                                 con.Send(worldkey, layer, posX, posY, 9);
  28.                                 Thread.Sleep(15);
  29.                             }
  30.                             else if (layer == 1)
  31.                             {
  32.                                 con.Send(worldkey, layer, posX, posY, 500);
  33.                                 Thread.Sleep(15);
  34.                             }
  35.                         }
  36.  
  37.                         world[layer, posX, posY] = (uint)bID;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement