Merge pull request #18 from minetest-mods/master

[pull] pandorabox from minetest-mods:master
This commit is contained in:
pull[bot]
2020-01-06 20:54:26 +00:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -452,7 +452,7 @@ function technic.discharge_tools(meta, batt_charge, charge_step, max_charge)
if inv:is_empty("dst") then
return batt_charge, false
end
srcstack = inv:get_stack("dst", 1)
local srcstack = inv:get_stack("dst", 1)
local toolname = srcstack:get_name()
if technic.power_tools[toolname] == nil then
return batt_charge, false