Xpanes: Use 'swap node' instead of 'set node'
authormbartlett21 <29034492+mbartlett21@users.noreply.github.com>
Fri, 6 Sep 2019 20:39:23 +0000 (06:39 +1000)
committerParamat <paramat@users.noreply.github.com>
Fri, 6 Sep 2019 20:39:23 +0000 (21:39 +0100)
mods/xpanes/init.lua

index 653c8cd9d32c4f8ee63480ffab5e2a3362d520f7..ed68e0af84cc5d9b40d62233d4f55e870f873f7a 100644 (file)
@@ -27,7 +27,7 @@ local function swap(pos, node, name, param2)
                return
        end
 
-       minetest.set_node(pos, {name = name, param2 = param2})
+       minetest.swap_node(pos, {name = name, param2 = param2})
 end
 
 local function update_pane(pos)