From: PilzAdam Date: Tue, 19 Feb 2013 19:16:55 +0000 (+0100) Subject: Dont drop tools on rightclick X-Git-Tag: 0.4.5~7^2~26 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fc61c8809b9a1d47d9f117446764107a56cec956;p=oweals%2Fminetest.git Dont drop tools on rightclick --- 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)