Fix undeclared global warnings

This commit is contained in:
Wuzzy 2019-09-26 14:31:24 +02:00
parent 85da5073b9
commit 2538680eea
2 changed files with 0 additions and 7 deletions

View File

@ -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

View File

@ -1118,10 +1118,8 @@ function tsm_pyramids.make_traps(pos, stype, rotations, layout_room)
local trap_node
if deep_trap then
trap_node = " "
depth = 14
else
trap_node = "~"
depth = 7
end
local wmin, wmax = -1,9
local hole = {x=pos.x+7,y=pos.y, z=pos.z+7}