mirror of
https://github.com/Uberi/Minetest-WorldEdit
synced 2025-11-14 02:27:59 +01:00
simplifswap_node
Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
parent
dbe94b1c35
commit
330c3cdf9b
@ -398,9 +398,7 @@ function worldedit.orient(pos1, pos2, operation, axis, angle)
|
|||||||
if def then
|
if def then
|
||||||
if def.paramtype2 == "wallmounted" then
|
if def.paramtype2 == "wallmounted" then
|
||||||
node.param2 = wallmounted_substitution[node.param2]
|
node.param2 = wallmounted_substitution[node.param2]
|
||||||
local meta = get_meta(pos):to_table()
|
swap_node(pos, node)
|
||||||
set_node(pos, node)
|
|
||||||
get_meta(pos):from_table(meta)
|
|
||||||
count = count + 1
|
count = count + 1
|
||||||
elseif def.paramtype2 == "facedir" then
|
elseif def.paramtype2 == "facedir" then
|
||||||
node.param2 = facedir_substitution[node.param2]
|
node.param2 = facedir_substitution[node.param2]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user