fix chainsaw not working
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Thu, 7 Nov 2013 04:08:28 +0000 (23:08 -0500)
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Thu, 7 Nov 2013 04:08:28 +0000 (23:08 -0500)
technic/tools/chainsaw.lua

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