Never make the same mistake i just did..

Discussion in 'Plugin Development' started by VoidWhisperer, Aug 24, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    VoidWhisperer

    So, I have a nether world generator.. however, I made a bit of an error in here, i'll leave it for anyone to spot:
    Code:
    for(int x = 0; x<16;x++)
                {
                    for(int z = 0; z<16;z++)
                    {
                        if(inCircle(centercircle,circleradius,new Location(w,x,actualstartheight,z)));
                        {
                            int heighttoplace = getLowestY(x,actualstartheight,z,src);
                            if(heighttoplace != -1)
                            {
                            src.getBlock(x,heighttoplace,z).setType(Material.SOUL_SAND);
                            src.getBlock(x,heighttoplace+1,z).setType(Material.NETHER_WARTS);
                            }
                        }
                    }
                }
    If you can spot the error, kudos to you! Don't make the mistake as me :p
     
Thread Status:
Not open for further replies.

Share This Page