From 8ad052881cb40032db63cbc9c76ae3c9786f8ef9 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Wed, 6 Nov 2013 22:09:06 -0500 Subject: [PATCH] Fix orient_flags to be optional. --- builtin/misc_helpers.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/builtin/misc_helpers.lua b/builtin/misc_helpers.lua index d847db42c..c9bc59c3a 100644 --- a/builtin/misc_helpers.lua +++ b/builtin/misc_helpers.lua @@ -212,6 +212,7 @@ if minetest then local dirs2 = { 20, 23, 22, 21 } function minetest.rotate_and_place(itemstack, placer, pointed_thing, infinitestacks, orient_flags) + orient_flags = orient_flags or {} local node = minetest.get_node(pointed_thing.under) if not minetest.registered_nodes[node.name]