mirror of
http://repo.or.cz/minetest_pyramids/tsm_pyramids.git
synced 2024-12-22 07:20:19 +01:00
Fix undeclared global warnings
This commit is contained in:
parent
85da5073b9
commit
2538680eea
5
init.lua
5
init.lua
@ -345,11 +345,6 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
||||
minetest.log("verbose", "[tsm_pyramids] Pyramid not placed, no suitable surface. minp="..minetest.pos_to_string(minp))
|
||||
return
|
||||
end
|
||||
-- Select the material type by the most prominent node type
|
||||
-- E.g. if desert sand is most prominent, we place a desert sandstone pyramid
|
||||
if sand_cnt_max_id then
|
||||
sand = sands[sand_cnt_max_id]
|
||||
end
|
||||
if p2.y < PYRA_MIN_Y then
|
||||
minetest.log("info", "[tsm_pyramids] Pyramid not placed, too deep. p2="..minetest.pos_to_string(p2))
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user