1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-03-25 21:29:06 +02:00

Merge pull request #179 from Bilka2/name-in-autostash-flying-text

Use localized item names for autostash flying text
This commit is contained in:
Gerkiz 2020-07-07 17:02:56 +02:00 committed by GitHub
commit 0f6917a5a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ local function create_floaty_text(surface, position, name, count)
position.x,
position.y + autostash.floating_text_y_offsets[position.x .. '_' .. position.y]
},
text = '-' .. count .. ' ' .. name,
text = {'', '-', count, ' ', game.item_prototypes[name].localised_name},
color = {r = 255, g = 255, b = 255}
}
)