diff options
Diffstat (limited to 'technic/mining_laser_mk1.lua')
-rw-r--r-- | technic/mining_laser_mk1.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/technic/mining_laser_mk1.lua b/technic/mining_laser_mk1.lua index 87c121d..a00af81 100644 --- a/technic/mining_laser_mk1.lua +++ b/technic/mining_laser_mk1.lua @@ -57,8 +57,8 @@ minetest.register_tool("technic:laser_mk1", { on_use = function(itemstack, user, pointed_thing) item=itemstack:to_table() local meta=get_item_meta(item["metadata"]) - if meta==nil then return false end --tool not charghed - if meta["charge"]==nil then return false end + if meta==nil then return end --tool not charghed + if meta["charge"]==nil then return end charge=meta["charge"] if charge-400>0 then laser_shoot(item, user, pointed_thing) |