diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-04-11 07:48:46 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-04-11 07:48:46 -0400 |
commit | a3a959ab5e98308dabb81e920967bb52d19109a7 (patch) | |
tree | 1f0ac28a369850cb315f61500e02f6255e84d29a | |
parent | 3f8478086db8720c0f4b5066779a55a2d0271260 (diff) |
add pipeworks tube overlays to MV, HV battery boxes
-rw-r--r-- | technic/machines/register/battery_box.lua | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/technic/machines/register/battery_box.lua b/technic/machines/register/battery_box.lua index 233e410..234ef9c 100644 --- a/technic/machines/register/battery_box.lua +++ b/technic/machines/register/battery_box.lua @@ -2,6 +2,7 @@ local digilines_path = minetest.get_modpath("digilines") local S = technic.getter +local tube_entry = "^pipeworks_tube_connection_metallic.png" local fs_helpers = pipeworks.fs_helpers @@ -207,11 +208,16 @@ function technic.register_battery_box(data) groups.tubedevice_receiver = 1 end + local tentry = tube_entry + if ltier == "lv" then + tentry = "" + end + minetest.register_node("technic:"..ltier.."_battery_box"..i, { description = S("%s Battery Box"):format(tier), tiles = { - "technic_"..ltier.."_battery_box_top.png", - "technic_"..ltier.."_battery_box_bottom.png", + "technic_"..ltier.."_battery_box_top.png"..tentry, + "technic_"..ltier.."_battery_box_bottom.png"..tentry, "technic_"..ltier.."_battery_box_side.png^technic_power_meter"..i..".png", "technic_"..ltier.."_battery_box_side.png^technic_power_meter"..i..".png", "technic_"..ltier.."_battery_box_side.png^technic_power_meter"..i..".png", |