mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-24 18:00:29 +01:00
check for cable plate under battery also
This commit is contained in:
parent
6b8011eba7
commit
06abe11dd0
@ -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 below = minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z})
|
||||||
local meta = minetest.get_meta(pos)
|
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))
|
meta:set_string("infotext", S("%s Battery Box Has No Network"):format(tier))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user