mirror of
https://github.com/mt-mods/plantlife_modpack.git
synced 2024-11-16 07:10:38 +01:00
p_top should be pos at lines 376, 377
This commit is contained in:
parent
e88c54213f
commit
5c2860ed53
|
@ -373,8 +373,8 @@ function plantslib:replace_object(pos, replacement, grow_function, walldir, seed
|
||||||
return
|
return
|
||||||
elseif growtype == "string" then
|
elseif growtype == "string" then
|
||||||
local perlin1 = minetest.env:get_perlin(seeddiff, perlin_octaves, perlin_persistence, perlin_scale)
|
local perlin1 = minetest.env:get_perlin(seeddiff, perlin_octaves, perlin_persistence, perlin_scale)
|
||||||
local noise1 = perlin1:get2d({x=p_top.x, y=p_top.z})
|
local noise1 = perlin1:get2d({x=pos.x, y=pos.z})
|
||||||
local noise2 = plantslib.perlin_temperature:get2d({x=p_top.x, y=p_top.z})
|
local noise2 = plantslib.perlin_temperature:get2d({x=pos.x, y=pos.z})
|
||||||
plantslib:dbg("Grow: call function "..grow_function.."("..dump(pos)..","..noise1..","..noise2..","..dump(walldir)..")")
|
plantslib:dbg("Grow: call function "..grow_function.."("..dump(pos)..","..noise1..","..noise2..","..dump(walldir)..")")
|
||||||
assert(loadstring(grow_function.."("..dump(pos)..","..noise1..","..noise2..","..dump(walldir)..")"))()
|
assert(loadstring(grow_function.."("..dump(pos)..","..noise1..","..noise2..","..dump(walldir)..")"))()
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue
Block a user