fix compatibility with minetest-mods/technic

closes #9
This commit is contained in:
OgelGames 2024-07-08 15:26:58 +10:00
parent 5756021322
commit 2c6077716b

@ -75,6 +75,9 @@ end
if technic.plus then if technic.plus then
set_charge = technic.set_RE_charge set_charge = technic.set_RE_charge
get_charge = technic.get_RE_charge get_charge = technic.get_RE_charge
elseif technic.set_charge and technic.get_charge then
set_charge = technic.set_charge
get_charge = technic.get_charge
end end
local function charge_item(stack, powerbank_charge, charge_step) local function charge_item(stack, powerbank_charge, charge_step)