Flowers: Keep mushrooms above water level
authorparamat <mat.gregory@virginmedia.com>
Fri, 24 Jul 2015 20:33:13 +0000 (21:33 +0100)
committerparamat <mat.gregory@virginmedia.com>
Fri, 24 Jul 2015 20:56:16 +0000 (21:56 +0100)
mods/flowers/mapgen.lua

index 9c03e2a14da4b9761df6a0c25a6a8901b4993521..151c8e8f873682664be1ffebc118667de2695b71 100644 (file)
@@ -20,7 +20,7 @@ end
 local function register_mushroom(name)
        minetest.register_decoration({
                deco_type = "simple",
-               place_on = {"default:dirt_with_grass", "default:dirt"},
+               place_on = {"default:dirt_with_grass"},
                sidelen = 16,
                noise_params = {
                        offset = 0,
@@ -30,7 +30,7 @@ local function register_mushroom(name)
                        octaves = 3,
                        persist = 0.6
                },
-               y_min = -31000,
+               y_min = 1,
                y_max = 30,
                decoration = "flowers:"..name,
        })