]> git.lizzy.rs Git - minetest.git/blobdiff - src/cavegen.cpp
Use single box for halo mesh
[minetest.git] / src / cavegen.cpp
index e1516af080b8d1346fe9626039ab2acb3e0b2ffc..b8abfbca5651bc2d48efa2181baea99359d4c52b 100644 (file)
@@ -43,6 +43,9 @@ CaveV5::CaveV5(Mapgen *mg, PseudoRandom *ps)
        c_ice                = ndef->getId("mapgen_ice");
        this->np_caveliquids = &nparams_caveliquids;
        this->ystride        = mg->csize.X;
+       if (c_ice == CONTENT_IGNORE)
+               c_ice = CONTENT_AIR;
 
        dswitchint = ps->range(1, 14);
        flooded    = ps->range(1, 2) == 2;