mirror of
https://github.com/Uberi/Minetest-WorldEdit
synced 2025-11-06 23:07: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.paramtype2 == "wallmounted" then
|
||||
node.param2 = wallmounted_substitution[node.param2]
|
||||
local meta = get_meta(pos):to_table()
|
||||
set_node(pos, node)
|
||||
get_meta(pos):from_table(meta)
|
||||
swap_node(pos, node)
|
||||
count = count + 1
|
||||
elseif def.paramtype2 == "facedir" then
|
||||
node.param2 = facedir_substitution[node.param2]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user