public void PostPopulate(World w) { byte bType, bMeta; ushort bExtra; int xxx, zzz; for (int xx = 0; xx < Width; xx++) { for (int zz = 0; zz < Depth; zz++) { for (int yy = 0; yy < Height; yy++) { xxx = (x << 4) + xx; zzz = (z << 4) + zz; bType = GetBlock(xx, yy, zz); if (!w.CanBlockStay(bType, xxx, yy, zzz)) { w.SetBlock(xxx, yy, zzz, 0, 0); } } } } }
public void PostPopulate(World w) { byte bType, bMeta; ushort bExtra; int xxx, zzz; for (int xx = 0; xx < Width; xx++) for (int zz = 0; zz < Depth; zz++) for (int yy = 0; yy < Height; yy++) { xxx = (x << 4) + xx; zzz = (z << 4) + zz; bType = GetBlock(xx, yy, zz); if (!w.CanBlockStay(bType, xxx, yy, zzz)) w.SetBlock(xxx, yy, zzz, 0, 0); } }