Created
February 9, 2013 23:28
-
-
Save PilzAdam/4747568 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/builtin/item.lua b/builtin/item.lua | |
index a28798d..b72a5e0 100644 | |
--- a/builtin/item.lua | |
+++ b/builtin/item.lua | |
@@ -237,8 +237,8 @@ function minetest.item_place(itemstack, placer, pointed_thing) | |
local n = minetest.env:get_node(pointed_thing.under) | |
local nn = n.name | |
if minetest.registered_nodes[nn] and minetest.registered_nodes[nn].on_rightclick then | |
- minetest.registered_nodes[nn].on_rightclick(pointed_thing.under, n, placer) | |
- return | |
+ minetest.registered_nodes[nn].on_rightclick(pointed_thing.under, n, placer, itemstack) | |
+ return itemstack | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment