From aefb98c60ebd322bac74ef35b0825b669679e5e8 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 24 Mar 2013 00:23:16 -0400 Subject: [PATCH] Fixed waterlilies to use proper facedir range ("6d facedir" code fixes an oversight in the engine that in turn revealed a bug in my code) --- flowers/init.lua | 2 +- plants_lib/init.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flowers/init.lua b/flowers/init.lua index 0468a68..63c7661 100644 --- a/flowers/init.lua +++ b/flowers/init.lua @@ -226,7 +226,7 @@ plantslib:spawn_on_surfaces({ seed_diff = flowers_seed_diff, light_min = 9, depth_max = 2, - random_facedir = {2,5} + random_facedir = {0,3} }) plantslib:spawn_on_surfaces({ diff --git a/plants_lib/init.lua b/plants_lib/init.lua index 790efbe..604f2ef 100644 --- a/plants_lib/init.lua +++ b/plants_lib/init.lua @@ -265,7 +265,7 @@ function plantslib:spawn_on_surfaces(sd,sp,sr,sc,ss,sa) assert(loadstring(spawn_plants.."("..dump(pos)..")"))() elseif not biome.spawn_on_side and not biome.spawn_on_bottom and not biome.spawn_replace_node then if n_top.name == "air" then - plantslib:dbg("Spawn: "..plant_to_spawn.." on top of ("..dump(pos)..")") + plantslib:dbg("Spawn: "..plant_to_spawn.." on top of ("..dump(pos).."); facedir="..fdir) minetest.env:add_node(p_top, { name = plant_to_spawn, param2 = fdir }) end elseif biome.spawn_replace_node then