copy&paste error

spawn_plants -> biome.spawn_plants

(only affects legacy string-named function based spawners)
This commit is contained in:
Vanessa Ezekowitz 2014-11-20 11:14:20 -05:00
parent b16a5f0a68
commit f30cc04a78

View File

@ -499,8 +499,8 @@ function plantslib:spawn_on_surfaces(sd,sp,sr,sc,ss,sa)
if biome.random_facedir then
fdir = math.random(biome.random_facedir[1],biome.random_facedir[2])
end
if type(spawn_plants) == "string" then
assert(loadstring(spawn_plants.."(...)"))(pos)
if type(biome.spawn_plants) == "string" then
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
if n_top.name == "air" then
minetest.set_node(p_top, { name = plant_to_spawn, param2 = fdir })