summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkpoppel <poulsen.kim@gmail.com>2013-07-04 19:19:45 +0200
committerkpoppel <poulsen.kim@gmail.com>2013-07-04 19:19:45 +0200
commit6e4ffb48831c8c275b450840830ed835a24d18a5 (patch)
tree458112117f6cb6d979e9fa279de9d39fba81882c
parentc7207a9cba3293935811baf107be2edbead02943 (diff)
Fix item wear.
-rw-r--r--technic/flashlight.lua2
-rw-r--r--technic/sonic_screwdriver.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/technic/flashlight.lua b/technic/flashlight.lua
index dd36c31..5f3ea96 100644
--- a/technic/flashlight.lua
+++ b/technic/flashlight.lua
@@ -161,7 +161,7 @@ local hotbar=inv:get_list("main")
charge=meta["charge"]
if charge-2>0 then
charge =charge-2;
- set_RE_wear(item,charge,flashlight_max_charge)
+ technic.set_RE_wear(item,charge,flashlight_max_charge)
meta["charge"]=charge
item["metadata"]=set_item_meta(meta)
hotbar[i]:replace(item)
diff --git a/technic/sonic_screwdriver.lua b/technic/sonic_screwdriver.lua
index 1453862..00922f7 100644
--- a/technic/sonic_screwdriver.lua
+++ b/technic/sonic_screwdriver.lua
@@ -38,7 +38,7 @@ minetest.register_tool("technic:sonic_screwdriver", {
charge=charge-100;
meta1["charge"]=charge
item["metadata"]=set_item_meta(meta1)
- set_RE_wear(item,charge,sonic_screwdriver_max_charge)
+ technic.set_RE_wear(item,charge,sonic_screwdriver_max_charge)
itemstack:replace(item)
end
return itemstack