Fix minetest.rotate_and_place() calling on_rightclick() with nil/random param for...
authorPilzAdam <pilzadam@minetest.net>
Sun, 19 Jan 2014 22:16:22 +0000 (23:16 +0100)
committerPilzAdam <pilzadam@minetest.net>
Sun, 19 Jan 2014 22:16:22 +0000 (23:16 +0100)
builtin/misc_helpers.lua

index a7a8f6b1c12ccc12a4d7e46c9fe1d6992e12b7b7..9c7349726d51f37bb8af6e6d958be04d0e58fb65 100644 (file)
@@ -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