forked from mtcontrib/plantlife_modpack
copy&paste error
spawn_plants -> biome.spawn_plants (only affects legacy string-named function based spawners)
This commit is contained in:
parent
b16a5f0a68
commit
f30cc04a78
@ -499,8 +499,8 @@ function plantslib:spawn_on_surfaces(sd,sp,sr,sc,ss,sa)
|
|||||||
if biome.random_facedir then
|
if biome.random_facedir then
|
||||||
fdir = math.random(biome.random_facedir[1],biome.random_facedir[2])
|
fdir = math.random(biome.random_facedir[1],biome.random_facedir[2])
|
||||||
end
|
end
|
||||||
if type(spawn_plants) == "string" then
|
if type(biome.spawn_plants) == "string" then
|
||||||
assert(loadstring(spawn_plants.."(...)"))(pos)
|
assert(loadstring(biome.spawn_plants.."(...)"))(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
|
||||||
minetest.set_node(p_top, { name = plant_to_spawn, param2 = fdir })
|
minetest.set_node(p_top, { name = plant_to_spawn, param2 = fdir })
|
||||||
|
Loading…
Reference in New Issue
Block a user