summaryrefslogtreecommitdiff
path: root/mapgen.lua
diff options
context:
space:
mode:
Diffstat (limited to 'mapgen.lua')
-rw-r--r--mapgen.lua9
1 files changed, 4 insertions, 5 deletions
diff --git a/mapgen.lua b/mapgen.lua
index 995d07c..b93c2d0 100644
--- a/mapgen.lua
+++ b/mapgen.lua
@@ -9,7 +9,7 @@ local function register_plant(name, min, max, spawnby, num)
noise_params = {
offset = 0,
scale = 0.006,
- spread = {x=100, y=100, z=100},
+ spread = {x = 100, y = 100, z = 100},
seed = 329,
octaves = 3,
persist = 0.6
@@ -38,9 +38,8 @@ function farming.register_mgv6_decorations()
register_plant("beanbush", 18, 35, "", -1)
end
--- enable in mapgen v6 only
+-- enable in v6 mapgen only
-local mg_params = minetest.get_mapgen_params()
-if mg_params.mgname == "v6" then
+if minetest.get_mapgen_params().mgname == "v6" then
farming.register_mgv6_decorations()
-end
+end \ No newline at end of file