diff options
| author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-01-25 04:33:27 -0500 | 
|---|---|---|
| committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-01-25 04:33:27 -0500 | 
| commit | 62768d243d3aaa29aefecbb840e5b8208cc9cf7e (patch) | |
| tree | 3efbca69f675dae9905f419c6beac80ee7a01e0a | |
| parent | a3d2e69a42585ffc7f9f4295b716948a10bee8c2 (diff) | |
Use node texture colorization
for priority tube, instead of [colorize
(except for inv image).  Saves a tiny bit of RAM.
| -rw-r--r-- | routing_tubes.lua | 9 | 
1 files changed, 5 insertions, 4 deletions
| diff --git a/routing_tubes.lua b/routing_tubes.lua index 8620d20..0a82fc8 100644 --- a/routing_tubes.lua +++ b/routing_tubes.lua @@ -14,13 +14,14 @@ minetest.register_craft( {  -- 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, -			plain = { "pipeworks_tube_plain.png^[colorize:" .. color }, -			noctr = { "pipeworks_tube_noctr.png^[colorize:" .. color }, -			ends = { "pipeworks_tube_end.png^[colorize:" .. color }, -			short = "pipeworks_tube_short.png^[colorize:" .. color, +			plain = { { name = "pipeworks_tube_plain.png", color = nodecolor } }, +			noctr = { { name = "pipeworks_tube_noctr.png", color = nodecolor } }, +			ends  = { { name = "pipeworks_tube_end.png",   color = nodecolor } }, +			short =   { name = "pipeworks_tube_short.png", color = nodecolor },  			node_def = {  				tube = { priority = 150 } -- higher than tubedevices (100)  			}, | 
