From f2fff77e903c04b925d2b949682b7a376fc2cc48 Mon Sep 17 00:00:00 2001 From: Thomas Rudin Date: Tue, 27 Nov 2018 20:47:37 +0100 Subject: [PATCH] fix metadata loss on rotate use swap_node() instead of set_node() so locked chests can be used again after rotation --- autoplace_tubes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoplace_tubes.lua b/autoplace_tubes.lua index a3a6aee..40a041f 100644 --- a/autoplace_tubes.lua +++ b/autoplace_tubes.lua @@ -122,7 +122,7 @@ end -- when they are updated. function pipeworks.on_rotate(pos, node, user, mode, new_param2) node.param2 = new_param2 - minetest.set_node(pos, node) + minetest.swap_node(pos, node) pipeworks.scan_for_tube_objects(pos) return true end