diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2015-07-05 10:54:18 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2015-07-05 10:54:18 +0100 |
commit | 16cc62a1d4d7c02a84b2ddc1538f5e81404b415c (patch) | |
tree | 529f3a26bdc2d8e71427771e3516a334d9a9d909 /mapgen.lua | |
parent | 6e4fa56475b4375655befc61ef868bd39a1f2a5d (diff) |
Code tidy and tweak
Diffstat (limited to 'mapgen.lua')
-rw-r--r-- | mapgen.lua | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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 |