public void SetBlock(int bx, int by, int bz, byte bid) { //int i = 30 - (16*(30 >> 4)); Chunk chunk = chunks[by >> 4]; chunk.SetBlock(bx, by - 16 * (by >> 4), bz, bid); SetDirty(); }
public void SetBlock(int bx, int by, int bz, byte bid) { //int i = 30 - (16*(30 >> 4)); Chunk chunk = chunks[by >> 4]; chunk.SetBlock(bx, by - 16 * (by >> 4), bz, bid); _cache = null; isDirty = true; }