Fix battery box tier localization

This commit is contained in:
Louis 2020-08-12 21:24:12 +02:00
parent 0878430fe5
commit 76fb39b6ca
1 changed files with 2 additions and 2 deletions

View File

@ -195,7 +195,7 @@ function technic.register_battery_box(data)
local meta = minetest.get_meta(pos)
if not technic.is_tier_cable(below.name, tier) then
meta:set_string("infotext", S("@1 Has No Network", S("@1 Battery Box", tier_localized)))
meta:set_string("infotext", S("@1 Has No Network", S("@1 Battery Box", data.tier_localized)))
return
end
@ -254,7 +254,7 @@ function technic.register_battery_box(data)
local charge_percent = math.floor(current_charge / max_charge * 100)
meta:set_string("formspec", formspec..add_on_off_buttons(meta, ltier, charge_percent))
local infotext = S("@1 Battery Box: @2 / @3", tier_localized,
local infotext = S("@1 Battery Box: @2 / @3", data.tier_localized,
technic.EU_string(current_charge),
technic.EU_string(max_charge))
if eu_input == 0 then