summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Rudin <thomas@rudin.io>2018-11-27 20:47:37 +0100
committerThomas Rudin <thomas@rudin.io>2018-11-27 20:47:37 +0100
commitf2fff77e903c04b925d2b949682b7a376fc2cc48 (patch)
treeae843c88e7965b84b80d02696a261f4045c20fd7
parentf37b21e632aebf3fea89c57ea72ca5db2f6499f7 (diff)
downloadpipeworks-f2fff77e903c04b925d2b949682b7a376fc2cc48.tar
pipeworks-f2fff77e903c04b925d2b949682b7a376fc2cc48.tar.gz
pipeworks-f2fff77e903c04b925d2b949682b7a376fc2cc48.tar.bz2
pipeworks-f2fff77e903c04b925d2b949682b7a376fc2cc48.tar.xz
pipeworks-f2fff77e903c04b925d2b949682b7a376fc2cc48.zip
fix metadata loss on rotate
use swap_node() instead of set_node() so locked chests can be used again after rotation
-rw-r--r--autoplace_tubes.lua2
1 files changed, 1 insertions, 1 deletions
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