fix chainsaw not working

This commit is contained in:
Vanessa Ezekowitz 2013-11-06 23:08:28 -05:00
parent f6b1d075c2
commit 9bc99a5d04

@ -12,7 +12,7 @@ minetest.register_tool("technic:chainsaw", {
inventory_image = "technic_chainsaw.png", inventory_image = "technic_chainsaw.png",
stack_max = 1, stack_max = 1,
on_use = function(itemstack, user, pointed_thing) on_use = function(itemstack, user, pointed_thing)
if pointed_thing.type == "node" then if pointed_thing.type ~= "node" then
return itemstack return itemstack
end end
local meta = get_item_meta(itemstack:get_metadata()) local meta = get_item_meta(itemstack:get_metadata())