summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRogier <rogier@nowhere.nonet>2016-07-02 12:19:04 +0200
committerRogier <rogier@nowhere.nonet>2016-07-02 12:46:46 +0200
commit5b3a2e0439e7ee88e7417aadef15fe961b9da317 (patch)
tree3c2b31b71e93e02a6c24ef46748dc68c80507b35
parent3a3ed250c68eba33eab39d147ff890e3faaba25b (diff)
Fix trees not spawning on top of surface
The bottom-most tree trunk would be missing, because the tree was generated at ground level, instead of above ground level.
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 01a17d2..1054bd7 100644
--- a/init.lua
+++ b/init.lua
@@ -289,7 +289,7 @@ function biome_lib:populate_surfaces(biome, nodes_or_function_or_model, snodes,
if objtype == "table" then
if nodes_or_function_or_model.axiom then
- biome_lib:generate_tree(pos, nodes_or_function_or_model)
+ biome_lib:generate_tree(p_top, nodes_or_function_or_model)
spawned = true
else
local fdir = nil