diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-01-13 20:37:05 -0500 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-01-13 20:37:05 -0500 |
commit | a275fd876ff478431d01dcdb77c9cdfeeaec397b (patch) | |
tree | 8c52b06f20c5bf9ef36baa9ef2db44d889a98fc5 /init.lua | |
parent | 41501b668dfeca64bf0e2278fb274aa1a4a7025c (diff) |
fixed a bug in conifers generation - I left out a few variable slots
so some of the last few variables were being set wrong.
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -14,6 +14,19 @@ -- License: WTFPL for all parts (code and textures) -- +-- snow biomes mod uses this code to make biomes: +-- +-- local perlin1 = env:get_perlin(112,3, 0.5, 150) +-- local test = perlin1:get2d({x=pos.x, y=pos.z}) +-- if smooth and (test > 0.73 or (test > 0.43 and math.random(0,29) > (0.73 - test) * 100 )) then +-- in_biome = true +-- elseif not smooth and test > 0.53 then +-- in_biome = true +-- end +-- +-- We'll just save this for later use ;-) +-- + local DEBUG = false -- Jungletree init stuff: @@ -96,6 +109,9 @@ spawn_on_surfaces( nil, CONIFERS_ALTITUDE, nil, + nil, + nil, + nil, 1, 9 ) |