From f1b99282e889e9a483c76af95ee3370b6d2b2d04 Mon Sep 17 00:00:00 2001 From: OgelGames Date: Sun, 5 Nov 2023 23:04:38 +1100 Subject: [PATCH] Remove log messages from `technic.get_RE_charge` and `technic.set_RE_charge` (#334) --- technic/helpers.lua | 3 --- 1 file changed, 3 deletions(-) diff --git a/technic/helpers.lua b/technic/helpers.lua index 2fd2e410..5caff842 100644 --- a/technic/helpers.lua +++ b/technic/helpers.lua @@ -67,8 +67,6 @@ function technic.set_RE_charge(stack, charge) if wear_factor then local wear = math.floor(charge * wear_factor + 0.5) stack:set_wear(wear > 0 and 65536 - wear or 0) - else - minetest.log("error", "technic.set_RE_charge item not registered as power tool: "..stack:get_name()) end end @@ -78,7 +76,6 @@ function technic.get_RE_charge(stack) local wear = stack:get_wear() return (wear > 0 and math.floor((65536 - wear) / def.technic_wear_factor + 0.5) or 0), def.technic_max_charge end - minetest.log("warning", "technic.get_RE_charge item not registered as power tool: "..stack:get_name()) return 0, 0 end