summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-04-12 20:29:22 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-04-12 20:29:22 -0400
commita34ea59105bf79544ecf6756af3ce64b027cfa1d (patch)
treeff668b2fe53d3ad43efe7f2c95dc29b6f8384e84
parent33455328bd4fbfacd26e3f02b77f2b54bea982d9 (diff)
LV batbox should show charge on all X/Z sides
(also, fixup some other texture defs for readability)
-rw-r--r--technic/machines/register/battery_box.lua20
1 files changed, 11 insertions, 9 deletions
diff --git a/technic/machines/register/battery_box.lua b/technic/machines/register/battery_box.lua
index 7f7f38e..5b298a7 100644
--- a/technic/machines/register/battery_box.lua
+++ b/technic/machines/register/battery_box.lua
@@ -216,24 +216,26 @@ function technic.register_battery_box(data)
groups.tubedevice_receiver = 1
end
+ local top_tex = "technic_"..ltier.."_battery_box_top.png"..tube_entry
local front_tex = "technic_"..ltier.."_battery_box_front.png^technic_power_meter"..i..".png"
- local tentry = tube_entry
- local bentry = tube_entry
+ local side_tex = "technic_"..ltier.."_battery_box_side.png"..tube_entry
+ local bottom_tex = "technic_"..ltier.."_battery_box_bottom.png"..tube_entry
if ltier == "lv" then
+ top_tex = "technic_"..ltier.."_battery_box_top.png"
front_tex = "technic_"..ltier.."_battery_box_side.png^technic_power_meter"..i..".png"
- tentry = ""
- bentry = cable_entry
+ side_tex = "technic_"..ltier.."_battery_box_side.png^technic_power_meter"..i..".png"
+ bottom_tex = "technic_"..ltier.."_battery_box_bottom.png"..cable_entry
end
minetest.register_node("technic:"..ltier.."_battery_box"..i, {
description = S("%s Battery Box"):format(tier),
tiles = {
- "technic_"..ltier.."_battery_box_top.png"..tentry,
- "technic_"..ltier.."_battery_box_bottom.png"..bentry,
- "technic_"..ltier.."_battery_box_side.png"..tentry,
- "technic_"..ltier.."_battery_box_side.png"..tentry,
- "technic_"..ltier.."_battery_box_side.png"..tentry,
+ top_tex,
+ bottom_tex,
+ side_tex,
+ side_tex,
+ side_tex,
front_tex},
groups = groups,
connect_sides = {"bottom"},