diff options
author | Tim <t4im@users.noreply.github.com> | 2015-01-31 14:47:06 +0100 |
---|---|---|
committer | Tim <t4im@users.noreply.github.com> | 2015-01-31 14:47:06 +0100 |
commit | 810ae99008667209508f553e6b08e53e63bf1029 (patch) | |
tree | e7252426166658fc833b7e5d956d9eadd2935d15 /routing_tubes.lua | |
parent | 4dc3f159c9114d65571122909e252167579dc90b (diff) |
reduce texturename repetition via __index
Diffstat (limited to 'routing_tubes.lua')
-rw-r--r-- | routing_tubes.lua | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/routing_tubes.lua b/routing_tubes.lua index ebd451f..2610119 100644 --- a/routing_tubes.lua +++ b/routing_tubes.lua @@ -10,12 +10,9 @@ minetest.register_craft( { }) if pipeworks.enable_accelerator_tube then - local accelerator_noctr_textures = {"pipeworks_accelerator_tube_noctr.png", "pipeworks_accelerator_tube_noctr.png", "pipeworks_accelerator_tube_noctr.png", - "pipeworks_accelerator_tube_noctr.png", "pipeworks_accelerator_tube_noctr.png", "pipeworks_accelerator_tube_noctr.png"} - local accelerator_plain_textures = {"pipeworks_accelerator_tube_plain.png" ,"pipeworks_accelerator_tube_plain.png", "pipeworks_accelerator_tube_plain.png", - "pipeworks_accelerator_tube_plain.png", "pipeworks_accelerator_tube_plain.png", "pipeworks_accelerator_tube_plain.png"} - local accelerator_end_textures = {"pipeworks_accelerator_tube_end.png", "pipeworks_accelerator_tube_end.png", "pipeworks_accelerator_tube_end.png", - "pipeworks_accelerator_tube_end.png", "pipeworks_accelerator_tube_end.png", "pipeworks_accelerator_tube_end.png"} + local accelerator_noctr_textures = { "pipeworks_accelerator_tube_noctr.png" } + local accelerator_plain_textures = { "pipeworks_accelerator_tube_plain.png" } + local accelerator_end_textures = { "pipeworks_accelerator_tube_end.png" } local accelerator_short_texture = "pipeworks_accelerator_tube_short.png" local accelerator_inv_texture = "pipeworks_accelerator_tube_inv.png" @@ -39,12 +36,9 @@ if pipeworks.enable_accelerator_tube then end if pipeworks.enable_crossing_tube then - local crossing_noctr_textures = {"pipeworks_crossing_tube_noctr.png", "pipeworks_crossing_tube_noctr.png", "pipeworks_crossing_tube_noctr.png", - "pipeworks_crossing_tube_noctr.png", "pipeworks_crossing_tube_noctr.png", "pipeworks_crossing_tube_noctr.png"} - local crossing_plain_textures = {"pipeworks_crossing_tube_plain.png" ,"pipeworks_crossing_tube_plain.png", "pipeworks_crossing_tube_plain.png", - "pipeworks_crossing_tube_plain.png", "pipeworks_crossing_tube_plain.png", "pipeworks_crossing_tube_plain.png"} - local crossing_end_textures = {"pipeworks_crossing_tube_end.png", "pipeworks_crossing_tube_end.png", "pipeworks_crossing_tube_end.png", - "pipeworks_crossing_tube_end.png", "pipeworks_crossing_tube_end.png", "pipeworks_crossing_tube_end.png"} + local crossing_noctr_textures = { "pipeworks_crossing_tube_noctr.png" } + local crossing_plain_textures = { "pipeworks_crossing_tube_plain.png" } + local crossing_end_textures = { "pipeworks_crossing_tube_end.png" } local crossing_short_texture = "pipeworks_crossing_tube_short.png" local crossing_inv_texture = "pipeworks_crossing_tube_inv.png" |