projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
365c169
)
Dont drop tools on rightclick
497/head
author
PilzAdam
<PilzAdam@gmx.de>
Tue, 19 Feb 2013 19:16:55 +0000
(20:16 +0100)
committer
PilzAdam
<PilzAdam@gmx.de>
Tue, 19 Feb 2013 19:16:55 +0000
(20:16 +0100)
builtin/item.lua
patch
|
blob
|
history
diff --git
a/builtin/item.lua
b/builtin/item.lua
index 2233b6c5b8ccae595c63120fce671e252be8145b..69c4bd0bbde7b4246d43b1a49d43c41ee02ed78e 100644
(file)
--- 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)