public void OnSpongeRemoved(int x, int y, int z) { for (int x1 = x - SpongeRange; x1 <= x + SpongeRange; x1++) { for (int y1 = y - SpongeRange; y1 <= y + SpongeRange; y1++) { for (int z1 = z - SpongeRange; z1 <= z + SpongeRange; z1++) { if (map.InBounds(x1, y1, z1)) { SpongeRemovedUpdateCoverage(x1, y1, z1); } } } } for (int x1 = x - SpongeRange; x1 <= x + SpongeRange; x1++) { for (int y1 = y - SpongeRange; y1 <= y + SpongeRange; y1++) { for (int z1 = z - SpongeRange; z1 <= z + SpongeRange; z1++) { if (map.InBounds(x1, y1, z1)) { map.PhysicsUpdateNeighbors(x1, y1, z1, map.GetBlock(x1, y1, z1)); } } } } }