summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2016-07-02 20:59:39 -0400
committerGitHub <noreply@github.com>2016-07-02 20:59:39 -0400
commit1dbf5c4b3f16a41695621b16b983c75fbd37c801 (patch)
tree3c2b31b71e93e02a6c24ef46748dc68c80507b35
parent3a3ed250c68eba33eab39d147ff890e3faaba25b (diff)
parent5b3a2e0439e7ee88e7417aadef15fe961b9da317 (diff)
Merge pull request #2 from Rogier-5/fix-tree-spawn-level
Fix trees not spawning on top of surface
-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