From 76fb39b6cadd2850badea83c74717032bff9fb39 Mon Sep 17 00:00:00 2001 From: Louis <55180044+louisroyer@users.noreply.github.com> Date: Wed, 12 Aug 2020 21:24:12 +0200 Subject: [PATCH] Fix battery box tier localization --- technic/machines/register/battery_box.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/technic/machines/register/battery_box.lua b/technic/machines/register/battery_box.lua index 2ed389f..8410fca 100644 --- a/technic/machines/register/battery_box.lua +++ b/technic/machines/register/battery_box.lua @@ -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