summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-04-13 16:27:49 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-04-13 16:27:49 -0400
commitb9bdb0241ea944cacb054e6768f4cda98dbcff94 (patch)
treebf24248e44ace3f63f98a9e34842a0d9dfe417d8
parent897f9c6a6ade7c9b669cfeda7c7014179b2366ce (diff)
downloaddreambuilder_modpack-b9bdb0241ea944cacb054e6768f4cda98dbcff94.tar
dreambuilder_modpack-b9bdb0241ea944cacb054e6768f4cda98dbcff94.tar.gz
dreambuilder_modpack-b9bdb0241ea944cacb054e6768f4cda98dbcff94.tar.bz2
dreambuilder_modpack-b9bdb0241ea944cacb054e6768f4cda98dbcff94.tar.xz
dreambuilder_modpack-b9bdb0241ea944cacb054e6768f4cda98dbcff94.zip
update technic
-rw-r--r--technic/machines/register/battery_box.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/technic/machines/register/battery_box.lua b/technic/machines/register/battery_box.lua
index a729a31..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 technic.is_tier_cable(below.tier, tier) 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