From d623715d94152e38e817555f43c7c6ab2372045c Mon Sep 17 00:00:00 2001 From: Bryce w <55167737+blockhead100@users.noreply.github.com> Date: Thu, 20 Oct 2022 18:28:45 +0200 Subject: [PATCH] Add LV led and lamp --- technic/tools/vacuum.lua | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/technic/tools/vacuum.lua b/technic/tools/vacuum.lua index b5afcb5..7b01af8 100644 --- a/technic/tools/vacuum.lua +++ b/technic/tools/vacuum.lua @@ -24,7 +24,7 @@ gain = 0.4, }) end - local pos = user:getpos() + local pos = user:get_pos() local inv = user:get_inventory() for _, object in ipairs(minetest.get_objects_inside_radius(pos, vacuum_range)) do local luaentity = object:get_luaentity() @@ -44,7 +44,7 @@ end end end - + technic.set_RE_wear(itemstack, meta.charge, vacuum_max_charge) itemstack:set_metadata(minetest.serialize(meta)) return itemstack -- Gitblit v1.8.0