forked from mtcontrib/plantlife_modpack
use biome_lib.get_nodedef_field
instead of biome_lib:get_nodedef_field (change `.` to `:`)
This commit is contained in:
parent
52b2d18523
commit
46717958bc
@ -78,16 +78,16 @@ for i in ipairs(lilies_list) do
|
|||||||
local above_node = minetest.get_node(pt.above)
|
local above_node = minetest.get_node(pt.above)
|
||||||
local top_node = minetest.get_node(top_pos)
|
local top_node = minetest.get_node(top_pos)
|
||||||
|
|
||||||
if biome_lib:get_nodedef_field(under_node.name, "buildable_to") then
|
if biome_lib.get_nodedef_field(under_node.name, "buildable_to") then
|
||||||
if under_node.name ~= "default:water_source" then
|
if under_node.name ~= "default:water_source" then
|
||||||
place_pos = pt.under
|
place_pos = pt.under
|
||||||
elseif top_node.name ~= "default:water_source"
|
elseif top_node.name ~= "default:water_source"
|
||||||
and biome_lib:get_nodedef_field(top_node.name, "buildable_to") then
|
and biome_lib.get_nodedef_field(top_node.name, "buildable_to") then
|
||||||
place_pos = top_pos
|
place_pos = top_pos
|
||||||
else
|
else
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
elseif biome_lib:get_nodedef_field(above_node.name, "buildable_to") then
|
elseif biome_lib.get_nodedef_field(above_node.name, "buildable_to") then
|
||||||
place_pos = pt.above
|
place_pos = pt.above
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -178,16 +178,16 @@ for i in ipairs(algae_list) do
|
|||||||
local above_node = minetest.get_node(pt.above)
|
local above_node = minetest.get_node(pt.above)
|
||||||
local top_node = minetest.get_node(top_pos)
|
local top_node = minetest.get_node(top_pos)
|
||||||
|
|
||||||
if biome_lib:get_nodedef_field(under_node.name, "buildable_to") then
|
if biome_lib.get_nodedef_field(under_node.name, "buildable_to") then
|
||||||
if under_node.name ~= "default:water_source" then
|
if under_node.name ~= "default:water_source" then
|
||||||
place_pos = pt.under
|
place_pos = pt.under
|
||||||
elseif top_node.name ~= "default:water_source"
|
elseif top_node.name ~= "default:water_source"
|
||||||
and biome_lib:get_nodedef_field(top_node.name, "buildable_to") then
|
and biome_lib.get_nodedef_field(top_node.name, "buildable_to") then
|
||||||
place_pos = top_pos
|
place_pos = top_pos
|
||||||
else
|
else
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
elseif biome_lib:get_nodedef_field(above_node.name, "buildable_to") then
|
elseif biome_lib.get_nodedef_field(above_node.name, "buildable_to") then
|
||||||
place_pos = pt.above
|
place_pos = pt.above
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user