1
0
mirror of https://github.com/mt-mods/plantlife_modpack.git synced 2025-06-28 14:16:11 +02:00

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

@ -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