remove monitoring code

This commit is contained in:
Thomas Rudin 2019-04-29 21:30:17 +02:00
parent 6059ec8aeb
commit bca3c97229
2 changed files with 0 additions and 12 deletions

View File

@ -12,4 +12,3 @@ intllib?
unified_inventory? unified_inventory?
vector_extras? vector_extras?
dye? dye?
monitoring?

View File

@ -4,14 +4,6 @@ local S = technic.getter
local tube_entry = "^pipeworks_tube_connection_metallic.png" local tube_entry = "^pipeworks_tube_connection_metallic.png"
local cable_entry = "^technic_cable_connection_overlay.png" local cable_entry = "^technic_cable_connection_overlay.png"
local has_monitoring = minetest.get_modpath("monitoring")
local metric_dig_count
if has_monitoring then
metric_dig_count = monitoring.counter("technic_quarry_dig_count",
"number of technic quarry digs")
end
minetest.register_craft({ minetest.register_craft({
recipe = { recipe = {
@ -144,9 +136,6 @@ local function quarry_handle_purge(pos)
end end
local function quarry_run(pos, node) local function quarry_run(pos, node)
if metric_dig_count ~= nil then
metric_dig_count.inc()
end
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
local owner = meta:get_string("owner") local owner = meta:get_string("owner")