Dont drop tools on rightclick
This commit is contained in:
parent
365c169b43
commit
fc61c8809b
@ -243,9 +243,8 @@ function minetest.item_place(itemstack, placer, pointed_thing)
|
|||||||
|
|
||||||
if itemstack:get_definition().type == "node" then
|
if itemstack:get_definition().type == "node" then
|
||||||
return minetest.item_place_node(itemstack, placer, pointed_thing)
|
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
|
end
|
||||||
|
return itemstack
|
||||||
end
|
end
|
||||||
|
|
||||||
function minetest.item_drop(itemstack, dropper, pos)
|
function minetest.item_drop(itemstack, dropper, pos)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user