aboutsummaryrefslogtreecommitdiff
path: root/builtin/misc_helpers.lua
diff options
context:
space:
mode:
authorPilzAdam <pilzadam@minetest.net>2014-01-19 23:16:22 +0100
committerPilzAdam <pilzadam@minetest.net>2014-01-19 23:16:22 +0100
commit4585e855a7fe63f4b820d7551a39ac9825b4cb1d (patch)
tree9e5c2e41b0fd97579a2d548160b97728c98b4e0f /builtin/misc_helpers.lua
parent1146db99565b597f82acdeea6a39996b6aa2d5b0 (diff)
downloadminetest-4585e855a7fe63f4b820d7551a39ac9825b4cb1d.tar.gz
minetest-4585e855a7fe63f4b820d7551a39ac9825b4cb1d.tar.bz2
minetest-4585e855a7fe63f4b820d7551a39ac9825b4cb1d.zip
Fix minetest.rotate_and_place() calling on_rightclick() with nil/random param for node
Diffstat (limited to 'builtin/misc_helpers.lua')
-rw-r--r--builtin/misc_helpers.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/misc_helpers.lua b/builtin/misc_helpers.lua
index a7a8f6b1c..9c7349726 100644
--- a/builtin/misc_helpers.lua
+++ b/builtin/misc_helpers.lua
@@ -257,7 +257,7 @@ if minetest then
end
local undef = minetest.registered_nodes[unode.name]
if undef and undef.on_rightclick then
- undef.on_rightclick(pointed_thing.under, node, placer,
+ undef.on_rightclick(pointed_thing.under, unode, placer,
itemstack, pointed_thing)
return
end