mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-11-08 08:23:59 +01:00
Merge branch 'rotate-metadata-fix' into 'master'
fix metadata loss on rotate See merge request VanessaE/pipeworks!6
This commit is contained in:
commit
ef5d30c92d
@ -122,7 +122,7 @@ end
|
|||||||
-- when they are updated.
|
-- when they are updated.
|
||||||
function pipeworks.on_rotate(pos, node, user, mode, new_param2)
|
function pipeworks.on_rotate(pos, node, user, mode, new_param2)
|
||||||
node.param2 = new_param2
|
node.param2 = new_param2
|
||||||
minetest.set_node(pos, node)
|
minetest.swap_node(pos, node)
|
||||||
pipeworks.scan_for_tube_objects(pos)
|
pipeworks.scan_for_tube_objects(pos)
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user