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)
This commit is contained in:
Vanessa 2013-03-24 00:23:16 -04:00
parent 7060f3dd21
commit aefb98c60e
2 changed files with 2 additions and 2 deletions

View File

@ -226,7 +226,7 @@ plantslib:spawn_on_surfaces({
seed_diff = flowers_seed_diff, seed_diff = flowers_seed_diff,
light_min = 9, light_min = 9,
depth_max = 2, depth_max = 2,
random_facedir = {2,5} random_facedir = {0,3}
}) })
plantslib:spawn_on_surfaces({ plantslib:spawn_on_surfaces({

View File

@ -265,7 +265,7 @@ function plantslib:spawn_on_surfaces(sd,sp,sr,sc,ss,sa)
assert(loadstring(spawn_plants.."("..dump(pos)..")"))() 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 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 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 }) minetest.env:add_node(p_top, { name = plant_to_spawn, param2 = fdir })
end end
elseif biome.spawn_replace_node then elseif biome.spawn_replace_node then