summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-12-15 05:59:31 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-12-15 06:00:04 -0500
commit072f78a360a3859890b36b2c3c0b636d53f9508e (patch)
tree057c7d963b0fc7203c8969aa45ce2fba55971cf8
parentc0ce62dacfe982fac58a79882919c1fef474f37d (diff)
downloadpipeworks-072f78a360a3859890b36b2c3c0b636d53f9508e.tar
pipeworks-072f78a360a3859890b36b2c3c0b636d53f9508e.tar.gz
pipeworks-072f78a360a3859890b36b2c3c0b636d53f9508e.tar.bz2
pipeworks-072f78a360a3859890b36b2c3c0b636d53f9508e.tar.xz
pipeworks-072f78a360a3859890b36b2c3c0b636d53f9508e.zip
local-ize yet a few more variables
-rw-r--r--pipes.lua8
1 files changed, 4 insertions, 4 deletions
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", {