From 4585e855a7fe63f4b820d7551a39ac9825b4cb1d Mon Sep 17 00:00:00 2001 From: PilzAdam Date: Sun, 19 Jan 2014 23:16:22 +0100 Subject: [PATCH] Fix minetest.rotate_and_place() calling on_rightclick() with nil/random param for node --- builtin/misc_helpers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/misc_helpers.lua b/builtin/misc_helpers.lua index a7a8f6b1..9c734972 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