]> git.lizzy.rs Git - minetest.git/blobdiff - src/content_abm.cpp
Fix crash when no world is selected and configure button is pressed.
[minetest.git] / src / content_abm.cpp
index 5812c7b502b0f9d063a63b9f4039e9415f3f4d7c..9e65a7ab0a5c12c772a88754c14575abe7a482bc 100644 (file)
@@ -54,7 +54,7 @@ class GrowGrassABM : public ActiveBlockModifier
                                !ndef->get(n_top).isLiquid() &&
                                n_top.getLightBlend(env->getDayNightRatio(), ndef) >= 13)
                {
-                       n.setContent(ndef->getId("dirt_with_grass"));
+                       n.setContent(ndef->getId("mapgen_dirt_with_grass"));
                        map->addNodeWithEvent(p, n);
                }
        }
@@ -83,7 +83,7 @@ class RemoveGrassABM : public ActiveBlockModifier
                if(!ndef->get(n_top).light_propagates ||
                                ndef->get(n_top).isLiquid())
                {
-                       n.setContent(ndef->getId("dirt"));
+                       n.setContent(ndef->getId("mapgen_dirt"));
                        map->addNodeWithEvent(p, n);
                }
        }