Skip to content

Instantly share code, notes, and snippets.

@benj02
Created October 9, 2011 05:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benj02/1273366 to your computer and use it in GitHub Desktop.
Save benj02/1273366 to your computer and use it in GitHub Desktop.
if(GuiIngame.PlaceBlock)
{
for(int a = -GuiConsole.cdx; a<=GuiConsole.cdx; a++)
{
for(int b = -GuiConsole.cdy; b<=GuiConsole.cdy; b++)
{
for(int c = -GuiConsole.cdz; c<=GuiConsole.cdz; c++)
{
if(mc.theWorld.getBlockId(i+a, j+b, k+c) != 0)
{
netClientHandler.addToSendQueue(new Packet14BlockDig(0, i+a, j+b, k+c, l));
}
}
}
}
}
netClientHandler.addToSendQueue(new Packet14BlockDig(0, i, j, k, l));
PlayerControllerTest.func_35644_a(mc, this, i, j, k, l);
blockHitDelay = 5;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment