local-ize yet a few more variables
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Sun, 15 Dec 2013 10:59:31 +0000 (05:59 -0500)
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Sun, 15 Dec 2013 11:00:04 +0000 (06:00 -0500)
pipes.lua

index 25ced059e965f8d5ed36ea0805deb9f904b0b7aa..86ad0089cc5be6ec2110502dd20944a0ef81926e 100644 (file)
--- a/pipes.lua
+++ b/pipes.lua
@@ -112,14 +112,14 @@ for zp = 0, 1 do
        local pname = xm..xp..ym..yp..zm..zp
        local pgroups = ""
 
+       local image = nil
+       local pipedesc = "Pipe segment"
+       local pgroups = {snappy=3, pipe=1}
+
        if pname ~= "110000" then
                pgroups = {snappy=3, pipe=1, not_in_creative_inventory=1}
                pipedesc = "Pipe segment (empty, "..pname..")... You hacker, you."
                image = "pipeworks_plain.png"
-       else
-               pgroups = {snappy=3, pipe=1}
-               pipedesc = "Pipe segment"
-               image = nil
        end
 
        minetest.register_node("pipeworks:pipe_"..pname.."_empty", {