Skip to content

Instantly share code, notes, and snippets.

@PilzAdam
Created February 9, 2013 23:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PilzAdam/4747568 to your computer and use it in GitHub Desktop.
Save PilzAdam/4747568 to your computer and use it in GitHub Desktop.
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