From: PilzAdam Date: Sun, 19 Jan 2014 22:16:22 +0000 (+0100) Subject: Fix minetest.rotate_and_place() calling on_rightclick() with nil/random param for... X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=4585e855a7fe63f4b820d7551a39ac9825b4cb1d;p=zefram%2Fminetest%2Fminetest_engine.git Fix minetest.rotate_and_place() calling on_rightclick() with nil/random param for node --- 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