Skip to content

Commit

Permalink
Fix battery box tier localization
Browse files Browse the repository at this point in the history
  • Loading branch information
louisroyer committed Aug 12, 2020
1 parent 059caac commit fe001ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions technic/machines/register/battery_box.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fe001ad

Please sign in to comment.