Skip to content

Commit

Permalink
releasing experimental 0.11.0e1 ...
Browse files Browse the repository at this point in the history
* also addressed an incorrect API warning in data-updates.lua
  • Loading branch information
LevFendi committed Apr 27, 2024
1 parent 9a7966d commit 3d1c6aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Version 0.11.0 BETA - EXPERIMENTAL
Released?
Released preview 0.11.0e1 on April 27th, 2024.

## Summary
- This update is mostly about changes under the hood while the mod codebase is being refactored so that the code is easier to follow and maintain, for contributors both new and old. The update also includes some bug fixes and small improvements, but the refactor has caused new bugs. Extensive testing is needed to find and fix the new bugs. Therefore this release is labeled as "experimental" and is recommended only to players who are interested in bug hunting.
Expand Down
8 changes: 5 additions & 3 deletions data-updates.lua
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@

for name, proto in pairs(data.raw.item) do
local pr = proto.place_result
local pr_name = ""
if pr then
---@diagnostic disable: undefined-field
if pr.name then
pr = pr.name
pr_name = pr.name
end
if not proto.localised_description then
proto.localised_description = { "entity-description." .. pr }
proto.localised_description = { "entity-description." .. pr_name }
end
if not proto.localised_name then
proto.localised_name = { "entity-name." .. pr }
proto.localised_name = { "entity-name." .. pr_name }
end
end
end
Expand Down

0 comments on commit 3d1c6aa

Please sign in to comment.