diff --git a/tools/electric_saber.lua b/tools/electric_saber.lua index 452e011..871c5c2 100644 --- a/tools/electric_saber.lua +++ b/tools/electric_saber.lua @@ -161,7 +161,7 @@ minetest.register_craft({ minetest.register_on_punchplayer(function(player,hitter) local itemstack=hitter:get_wielded_item() - if registeredElectricSabers[itemstack:get_name()] then + if industrialtest.internal.registeredElectricSabers[itemstack:get_name()] then local meta=itemstack:get_meta() if meta:get_int("industrialtest.powerAmount")>=20 then industrialtest.api.addPowerToItem(itemstack,-20)