Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int layer = m.GetInt(0);
- int posX = m.GetInt(1);
- int posY = m.GetInt(2);
- int bID = m.GetInt(3);
- string placer = players[m.GetInt(4)];
- // getNoEdit() is an invoke method that returns the richTextBox Lines
- if (getNoEdit().Contains(placer) && checkBox1.Checked)
- {
- if (world[layer, posX, posY] == 0)
- {
- con.Send(worldkey, layer, posX, posY, 0);
- Thread.Sleep(15);
- } // 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.
- else if (checkBox3.Checked && isStarterBlock((int)world[layer, posX, posY]))
- {
- con.Send(worldkey, layer, posX, posY, world[layer, posX, posY]);
- Thread.Sleep(15);
- }
- else if (!checkBox3.Checked)
- {
- con.Send(worldkey, layer, posX, posY, world[layer, posX, posY]);
- Thread.Sleep(15);
- }
- else if (layer == 0)
- {
- con.Send(worldkey, layer, posX, posY, 9);
- Thread.Sleep(15);
- }
- else if (layer == 1)
- {
- con.Send(worldkey, layer, posX, posY, 500);
- Thread.Sleep(15);
- }
- }
- world[layer, posX, posY] = (uint)bID;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement