1
0
mirror of https://codeberg.org/tenplus1/farming.git synced 2025-06-30 07:11:13 +02:00

Code tidy and tweak

This commit is contained in:
TenPlus1
2015-07-05 10:54:18 +01:00
parent 6e4fa56475
commit 16cc62a1d4
23 changed files with 622 additions and 352 deletions

View File

@ -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