aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorPilzAdam <PilzAdam@gmx.de>2013-02-19 20:16:55 +0100
committerPilzAdam <PilzAdam@gmx.de>2013-02-19 20:16:55 +0100
commitfc61c8809b9a1d47d9f117446764107a56cec956 (patch)
tree87a7c81efa6f42e9596204c6824a9eef27a50474 /builtin
parent365c169b43f61b7f957bdd302b3cf9a837cabec1 (diff)
downloadminetest-fc61c8809b9a1d47d9f117446764107a56cec956.tar.gz
minetest-fc61c8809b9a1d47d9f117446764107a56cec956.tar.bz2
minetest-fc61c8809b9a1d47d9f117446764107a56cec956.zip
Dont drop tools on rightclick
Diffstat (limited to 'builtin')
-rw-r--r--builtin/item.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin/item.lua b/builtin/item.lua
index 2233b6c5b..69c4bd0bb 100644
--- a/builtin/item.lua
+++ b/builtin/item.lua
@@ -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)