simplifswap_node

Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
mruncreative 2025-04-06 18:04:38 +02:00 committed by GitHub
parent dbe94b1c35
commit 330c3cdf9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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]