Papyrus: Grow on dirt and grass only, remove from desert ocean
authorparamat <mat.gregory@virginmedia.com>
Mon, 5 Oct 2015 00:25:23 +0000 (01:25 +0100)
committerparamat <mat.gregory@virginmedia.com>
Mon, 5 Oct 2015 00:47:37 +0000 (01:47 +0100)
mods/default/functions.lua
mods/default/mapgen.lua

index 3accbd1f52cdc6fdfedb2901bdf705cf90208569..50f481f663f58aefced36e8799e840f9e9c00f81 100644 (file)
@@ -152,8 +152,7 @@ end
 function default.grow_papyrus(pos, node)
        pos.y = pos.y - 1
        local name = minetest.get_node(pos).name
-       if name ~= "default:dirt_with_grass" and name ~= "default:dirt" and
-                       name ~= "default:sand" then
+       if name ~= "default:dirt_with_grass" and name ~= "default:dirt" then
                return
        end
        if not minetest.find_node_near(pos, 3, {"group:water"}) then
index cb9fbe784d308b47bfc23493074a8f110b3c8f3b..0a2b3bc2b66c35233c3affe2c0cf622d9f10b1f4 100644 (file)
@@ -1054,7 +1054,7 @@ function default.register_decorations()
 
        minetest.register_decoration({
                deco_type = "schematic",
-               place_on = {"default:dirt", "default:sand"},
+               place_on = {"default:dirt"},
                sidelen = 16,
                noise_params = {
                        offset = -0.3,
@@ -1064,7 +1064,7 @@ function default.register_decorations()
                        octaves = 3,
                        persist = 0.7
                },
-               biomes = {"savanna_swamp", "desert_ocean"},
+               biomes = {"savanna_swamp"},
                y_min = 0,
                y_max = 0,
                schematic = minetest.get_modpath("default").."/schematics/papyrus.mts",