Dont drop tools on rightclick 497/head
authorPilzAdam <PilzAdam@gmx.de>
Tue, 19 Feb 2013 19:16:55 +0000 (20:16 +0100)
committerPilzAdam <PilzAdam@gmx.de>
Tue, 19 Feb 2013 19:16:55 +0000 (20:16 +0100)
builtin/item.lua

index 2233b6c5b8ccae595c63120fce671e252be8145b..69c4bd0bbde7b4246d43b1a49d43c41ee02ed78e 100644 (file)
@@ -243,9 +243,8 @@ function minetest.item_place(itemstack, placer, pointed_thing)
 
        if itemstack:get_definition().type == "node" then
                return minetest.item_place_node(itemstack, placer, pointed_thing)
-       elseif itemstack:get_definition().type ~= "none" then
-               return minetest.item_place_object(itemstack, placer, pointed_thing)
        end
+       return itemstack
 end
 
 function minetest.item_drop(itemstack, dropper, pos)