]> git.lizzy.rs Git - minetest.git/commitdiff
Fix orient_flags to be optional.
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Thu, 7 Nov 2013 03:09:06 +0000 (22:09 -0500)
committerkwolekr <kwolekr@minetest.net>
Thu, 7 Nov 2013 03:23:00 +0000 (22:23 -0500)
builtin/misc_helpers.lua

index d847db42c46687788d8cd7cd4afa76d8728106c3..c9bc59c3a99af273b982b67f56a9805fd5febb7d 100644 (file)
@@ -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]