Fix drill charge

This commit is contained in:
cx384 2024-01-09 17:38:30 +01:00
parent 287b3676b4
commit 7727d3f71f

View File

@ -292,6 +292,7 @@ local function mining_drill_mkX_handler(itemstack, user, pointed_thing, drill_ty
local pos = minetest.get_pointed_thing_position(pointed_thing, false)
drill_dig_it(pos, user, mode)
if not technic.creative_mode then
charge = charge - charge_to_take
meta:set_int("technic:charge", charge)
technic.set_RE_wear(itemstack, charge, max_charge[drill_type])
end