Commit a73142dc authored by Fedja Beader's avatar Fedja Beader
Browse files

reduce debug spam + fix unused var (luacheck)

parent 78524c29
......@@ -79,7 +79,7 @@ function NodeStorage:from_bounding_box(bb)
local rel_pos = vector.subtract(pos, bb.min)
local node = core.get_node_or_nil(pos)
if node then
l:debug("Saved node at " .. minetest.pos_to_string(rel_pos) .. ": '"..node.name.."', param2: " ..node.param2)
--l:debug("Saved node at " .. minetest.pos_to_string(rel_pos) .. ": '"..node.name.."', param2: " ..node.param2)
table.insert(self.nodes, { pos = rel_pos, node = node} )
else
l:debug("Unable to obtain node at " .. minetest.pos_to_string(pos))
......@@ -99,7 +99,7 @@ function NodeStorage:get_bill_of_materials()
if self.info.bill_of_materials then return self.info.bill_of_materials end
local BOM = {}
for i,node_data in pairs(self.nodes) do -- can an index be nil?
for _,node_data in pairs(self.nodes) do -- can an index be nil?
local node_name = node_data.node.name
BOM[node_name] = (BOM[node_name] or 0) + 1
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment