local-ize a couple of variables
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Sat, 21 Dec 2013 08:26:47 +0000 (03:26 -0500)
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Sat, 21 Dec 2013 08:26:47 +0000 (03:26 -0500)
compat.lua

index 8c1e98e5ea07f14fddcfb1d04a43717b375e4e8f..3bf7d98d36bf68a402540d47c6fdec732836f046 100644 (file)
@@ -2,8 +2,8 @@
 -- with pipeworks.
 
 function pipeworks:clone_node(name)
-       node2={}
-       node=minetest.registered_nodes[name]
+       local node2={}
+       local node=minetest.registered_nodes[name]
        for k,v in pairs(node) do
                node2[k]=v
        end