From 2538680eea4a8ca57b997220be7ad338da3b260e Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 26 Sep 2019 14:31:24 +0200 Subject: [PATCH] Fix undeclared global warnings --- init.lua | 5 ----- room.lua | 2 -- 2 files changed, 7 deletions(-) diff --git a/init.lua b/init.lua index 955858f..86f1997 100644 --- a/init.lua +++ b/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 diff --git a/room.lua b/room.lua index 3220569..05cfe61 100644 --- a/room.lua +++ b/room.lua @@ -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}