Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove log messages from technic.get_RE_charge and technic.set_RE_charge #334

Merged
merged 1 commit into from
Nov 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading