Skip to content

Commit

Permalink
Fix minetest.rotate_and_place() calling on_rightclick() with nil/rand…
Browse files Browse the repository at this point in the history
…om param for node
  • Loading branch information
PilzAdam committed Jan 19, 2014
1 parent 1146db9 commit 4585e85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/misc_helpers.lua
Expand Up @@ -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
Expand Down

0 comments on commit 4585e85

Please sign in to comment.