From: Vanessa Ezekowitz Date: Sun, 15 Dec 2013 10:59:31 +0000 (-0500) Subject: local-ize yet a few more variables X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=072f78a360a3859890b36b2c3c0b636d53f9508e;p=zefram%2Fminetest%2Fpipeworks.git local-ize yet a few more variables --- diff --git a/pipes.lua b/pipes.lua index 25ced05..86ad008 100644 --- 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", {