Skip to content

Commit

Permalink
Remove log messages from technic.get_RE_charge and `technic.set_RE_…
Browse files Browse the repository at this point in the history
…charge` (#334)
  • Loading branch information
OgelGames authored Nov 5, 2023
1 parent 4d9bb7d commit f1b9928
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions technic/helpers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit f1b9928

Please sign in to comment.