forked from Mirrorlandia_minetest/minetest
Fix orient_flags to be optional.
This commit is contained in:
parent
d886f34003
commit
8ad052881c
@ -212,6 +212,7 @@ if minetest then
|
|||||||
local dirs2 = { 20, 23, 22, 21 }
|
local dirs2 = { 20, 23, 22, 21 }
|
||||||
|
|
||||||
function minetest.rotate_and_place(itemstack, placer, pointed_thing, infinitestacks, orient_flags)
|
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)
|
local node = minetest.get_node(pointed_thing.under)
|
||||||
if not minetest.registered_nodes[node.name]
|
if not minetest.registered_nodes[node.name]
|
||||||
|
Loading…
Reference in New Issue
Block a user