Use node texture colorization
for priority tube, instead of [colorize (except for inv image). Saves a tiny bit of RAM.
This commit is contained in:
parent
a3d2e69a42
commit
62768d243d
@ -14,13 +14,14 @@ minetest.register_craft( {
|
|||||||
-- without doing actual sorting, like at outputs of tubedevices that might both accept and eject items
|
-- without doing actual sorting, like at outputs of tubedevices that might both accept and eject items
|
||||||
if pipeworks.enable_priority_tube then
|
if pipeworks.enable_priority_tube then
|
||||||
local color = "#ff3030:128"
|
local color = "#ff3030:128"
|
||||||
|
local nodecolor = 0xffff3030
|
||||||
pipeworks.register_tube("pipeworks:priority_tube", {
|
pipeworks.register_tube("pipeworks:priority_tube", {
|
||||||
description = "High Priority Tube Segment",
|
description = "High Priority Tube Segment",
|
||||||
inventory_image = "pipeworks_tube_inv.png^[colorize:" .. color,
|
inventory_image = "pipeworks_tube_inv.png^[colorize:" .. color,
|
||||||
plain = { "pipeworks_tube_plain.png^[colorize:" .. color },
|
plain = { { name = "pipeworks_tube_plain.png", color = nodecolor } },
|
||||||
noctr = { "pipeworks_tube_noctr.png^[colorize:" .. color },
|
noctr = { { name = "pipeworks_tube_noctr.png", color = nodecolor } },
|
||||||
ends = { "pipeworks_tube_end.png^[colorize:" .. color },
|
ends = { { name = "pipeworks_tube_end.png", color = nodecolor } },
|
||||||
short = "pipeworks_tube_short.png^[colorize:" .. color,
|
short = { name = "pipeworks_tube_short.png", color = nodecolor },
|
||||||
node_def = {
|
node_def = {
|
||||||
tube = { priority = 150 } -- higher than tubedevices (100)
|
tube = { priority = 150 } -- higher than tubedevices (100)
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user