diff options
author | Jordan Irwin <antumdeluge@gmail.com> | 2017-06-07 22:54:09 -0700 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-06-08 01:54:09 -0400 |
commit | 2eff6e36ea322e3cc603074da42ad7febf15e617 (patch) | |
tree | ee0032d7b6b778cf67440cf4df20591fac304c41 | |
parent | 69d994a2a28b435a5cc37528fccce04c44d1d5ba (diff) | |
download | pipeworks-2eff6e36ea322e3cc603074da42ad7febf15e617.tar pipeworks-2eff6e36ea322e3cc603074da42ad7febf15e617.tar.gz pipeworks-2eff6e36ea322e3cc603074da42ad7febf15e617.tar.bz2 pipeworks-2eff6e36ea322e3cc603074da42ad7febf15e617.tar.xz pipeworks-2eff6e36ea322e3cc603074da42ad7febf15e617.zip |
Change scope of local variable 'nodecolor': (#185)
Fixes warning about undefined global.
-rw-r--r-- | routing_tubes.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routing_tubes.lua b/routing_tubes.lua index 6ed0723..ba9e0aa 100644 --- a/routing_tubes.lua +++ b/routing_tubes.lua @@ -10,6 +10,8 @@ minetest.register_craft( { }, }) +local nodecolor = 0xffff3030 + pipeworks.register_tube("pipeworks:broken_tube", { description = "Broken Tube (you hacker you)", plain = { { name = "pipeworks_broken_tube_plain.png", backface_culling = false, color = nodecolor } }, @@ -66,7 +68,6 @@ pipeworks.register_tube("pipeworks:broken_tube", { -- without doing actual sorting, like at outputs of tubedevices that might both accept and eject items if pipeworks.enable_priority_tube then local color = "#ff3030:128" - local nodecolor = 0xffff3030 pipeworks.register_tube("pipeworks:priority_tube", { description = "High Priority Tube Segment", inventory_image = "pipeworks_tube_inv.png^[colorize:" .. color, |