summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-12-21 03:35:39 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-12-21 03:35:39 -0500
commit784634f0da3d86f18c76fb9bfaada570fd046a5b (patch)
tree325a8142d54886412ce152c86e1c5230514ed1c4
parentf57443e96fcf79f67de093dc5b0de7881f44264e (diff)
downloadpipeworks-784634f0da3d86f18c76fb9bfaada570fd046a5b.tar
pipeworks-784634f0da3d86f18c76fb9bfaada570fd046a5b.tar.gz
pipeworks-784634f0da3d86f18c76fb9bfaada570fd046a5b.tar.bz2
pipeworks-784634f0da3d86f18c76fb9bfaada570fd046a5b.tar.xz
pipeworks-784634f0da3d86f18c76fb9bfaada570fd046a5b.zip
local-ize a couple more variables
-rw-r--r--devices.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/devices.lua b/devices.lua
index 4b321b6..dee0d21 100644
--- a/devices.lua
+++ b/devices.lua
@@ -94,7 +94,7 @@ for s in ipairs(states) do
end
}},
on_punch = function(pos, node, puncher)
- fdir = minetest.get_node(pos).param2
+ local fdir = minetest.get_node(pos).param2
minetest.add_node(pos, { name = "pipeworks:pump_"..states[3-s], param2 = fdir })
end
})
@@ -152,7 +152,7 @@ for s in ipairs(states) do
end
}},
on_punch = function(pos, node, puncher)
- fdir = minetest.get_node(pos).param2
+ local fdir = minetest.get_node(pos).param2
minetest.add_node(pos, { name = "pipeworks:valve_"..states[3-s].."_empty", param2 = fdir })
end
})
@@ -205,7 +205,7 @@ minetest.register_node("pipeworks:valve_on_loaded", {
end
}},
on_punch = function(pos, node, puncher)
- fdir = minetest.get_node(pos).param2
+ local fdir = minetest.get_node(pos).param2
minetest.add_node(pos, { name = "pipeworks:valve_off_empty", param2 = fdir })
end
})