Skip to content

Commit

Permalink
fa-info: fix some leftover fallout from moving to message-builder aro…
Browse files Browse the repository at this point in the history
…und power production reading
  • Loading branch information
ahicks92 committed Nov 7, 2024
1 parent 9326ff2 commit 3831f33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion locale/en/entity-info.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ent-info-gate-circuit-network-connection=gate control circuit
ent-info-marked-for-upgrading=Marked for upgrading
ent-info-marked-for-deconstruction=Marked for deconstruction

ent-info-generator-load=At __1__ load
ent-info-generator-load=At __1__ percent
ent-info-generator-production-with-max=producing __2__ of __3__ max
ent-info-generator-production=producing __1__

Expand Down
2 changes: 1 addition & 1 deletion scripts/fa-info.lua
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ local function ent_info_power_production(ctx)
local power2 = ent.prototype.get_max_energy_production(ent.quality) * 60
local power_load_pct = math.ceil(power1 / power2 * 100)
if power2 ~= nil then
ctx.message:fragment(FaUtils.localise_cat_table({ "fa.ent-info-generator-load", power_load_pct })):fragment({
ctx.message:fragment({ "fa.ent-info-generator-load", power_load_pct }):fragment({
"fa.ent-info-generator-production",
Electrical.get_power_string(power1),
Electrical.get_power_string(power2),
Expand Down

0 comments on commit 3831f33

Please sign in to comment.