forked from mtcontrib/plantlife_modpack
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:
parent
7060f3dd21
commit
aefb98c60e
|
@ -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({
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user