mirror of
https://github.com/factoriolib/flib.git
synced 2025-09-04 08:26:22 +00:00
@@ -5,6 +5,8 @@ Date: ????
|
||||
- Added `flib_prototypes.get_base_type` method.
|
||||
Changes:
|
||||
- Improved error messaging of flib_prototypes functions.
|
||||
Bugfixes:
|
||||
- Fixed that `flib_locale.of` would give an incorrect result in some cases. (#80)
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.16.2
|
||||
Date: 2025-01-24
|
||||
|
@@ -18,7 +18,7 @@ function flib_locale.of(prototype, name)
|
||||
elseif defines.prototypes.item[prototype.type] then
|
||||
return flib_locale.of_item(prototype --[[@as data.ItemPrototype]])
|
||||
else
|
||||
return prototype.localised_name or { prototype.type .. "-name." .. prototype.name }
|
||||
return prototype.localised_name or { flib_prototypes.get_base_type(prototype.type) .. "-name." .. prototype.name }
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user