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))
|
minetest.log("verbose", "[tsm_pyramids] Pyramid not placed, no suitable surface. minp="..minetest.pos_to_string(minp))
|
||||||
return
|
return
|
||||||
end
|
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
|
if p2.y < PYRA_MIN_Y then
|
||||||
minetest.log("info", "[tsm_pyramids] Pyramid not placed, too deep. p2="..minetest.pos_to_string(p2))
|
minetest.log("info", "[tsm_pyramids] Pyramid not placed, too deep. p2="..minetest.pos_to_string(p2))
|
||||||
return
|
return
|
||||||
|
2
room.lua
2
room.lua
@ -1118,10 +1118,8 @@ function tsm_pyramids.make_traps(pos, stype, rotations, layout_room)
|
|||||||
local trap_node
|
local trap_node
|
||||||
if deep_trap then
|
if deep_trap then
|
||||||
trap_node = " "
|
trap_node = " "
|
||||||
depth = 14
|
|
||||||
else
|
else
|
||||||
trap_node = "~"
|
trap_node = "~"
|
||||||
depth = 7
|
|
||||||
end
|
end
|
||||||
local wmin, wmax = -1,9
|
local wmin, wmax = -1,9
|
||||||
local hole = {x=pos.x+7,y=pos.y, z=pos.z+7}
|
local hole = {x=pos.x+7,y=pos.y, z=pos.z+7}
|
||||||
|
Loading…
Reference in New Issue
Block a user