Skip to content

Commit fe001ad

Browse files
committed
Fix battery box tier localization
1 parent 059caac commit fe001ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

technic/machines/register/battery_box.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ function technic.register_battery_box(data)
195195
local meta = minetest.get_meta(pos)
196196

197197
if not technic.is_tier_cable(below.name, tier) then
198-
meta:set_string("infotext", S("@1 Has No Network", S("@1 Battery Box", tier_localized)))
198+
meta:set_string("infotext", S("@1 Has No Network", S("@1 Battery Box", data.tier_localized)))
199199
return
200200
end
201201

@@ -254,7 +254,7 @@ function technic.register_battery_box(data)
254254

255255
local charge_percent = math.floor(current_charge / max_charge * 100)
256256
meta:set_string("formspec", formspec..add_on_off_buttons(meta, ltier, charge_percent))
257-
local infotext = S("@1 Battery Box: @2 / @3", tier_localized,
257+
local infotext = S("@1 Battery Box: @2 / @3", data.tier_localized,
258258
technic.EU_string(current_charge),
259259
technic.EU_string(max_charge))
260260
if eu_input == 0 then

0 commit comments

Comments
 (0)