Fix item wear.
authorkpoppel <poulsen.kim@gmail.com>
Thu, 4 Jul 2013 17:19:45 +0000 (19:19 +0200)
committerkpoppel <poulsen.kim@gmail.com>
Thu, 4 Jul 2013 17:19:45 +0000 (19:19 +0200)
technic/flashlight.lua
technic/sonic_screwdriver.lua

index dd36c3131aa0a0aad14e3d854cb273433ad7c042..5f3ea969245e275793af2d54815297e54024fefe 100644 (file)
@@ -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)
index 14538622f0688f5032b6beecdf2bca152b9a3b05..00922f74ec9481232e2048252fe250717620226e 100644 (file)
@@ -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