public void SetBlock(int x, int y, int blocktype) { GetChunk(x, y)[x % chunksize, y % chunksize] = (byte)blocktype; }