mirror of
https://github.com/minetest-mods/technic.git
synced 2025-03-14 16:40:34 +01:00
Generalize check for cable below battery box
Because we have cable plates now, too.
This commit is contained in:
parent
1d20af1bcb
commit
f25d97fc3a
@ -136,7 +136,7 @@ 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 technic.is_tier_cable(below.tier, tier) then
|
||||
meta:set_string("infotext", S("%s Battery Box Has No Network"):format(tier))
|
||||
return
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user