diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-04-13 16:25:42 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-04-13 16:25:42 -0400 |
commit | 06abe11dd0800dd646e2092a7302ead99a23d9bc (patch) | |
tree | 37e86d26c3333dec5044eba3b2e711380f495fc6 | |
parent | 6b8011eba799dbd24dbeb613063f7c0005c45701 (diff) |
check for cable plate under battery also
-rw-r--r-- | technic/machines/register/battery_box.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/technic/machines/register/battery_box.lua b/technic/machines/register/battery_box.lua index 5b298a7..e26ee09 100644 --- a/technic/machines/register/battery_box.lua +++ b/technic/machines/register/battery_box.lua @@ -136,7 +136,8 @@ function technic.register_battery_box(data) local below = minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z}) local meta = minetest.get_meta(pos) - if below.name ~= "technic:"..ltier.."_cable" then + if below.name ~= "technic:"..ltier.."_cable" + and not string.find(below.name, "technic:"..ltier.."_cable_plate") then meta:set_string("infotext", S("%s Battery Box Has No Network"):format(tier)) return end |