Skip to content

Commit

Permalink
fix lowering string about (#1568)
Browse files Browse the repository at this point in the history
Co-authored-by: Tomasz Jurczyk <[email protected]>
  • Loading branch information
tjurczyk and Tomasz Jurczyk authored Apr 19, 2024
1 parent 9a5920b commit 495dc37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion skrypty/misc/knowledge/books.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ end
function scripts.misc.knowledge:start_reading_book(book, about)
scripts.misc.knowledge["book_current_row"] = nil
local book_proper = scripts.misc.knowledge.book_declension_map[book]
local about_proper = misc.knowledge.declension_category[about]
local about_proper = misc.knowledge.declension_category[string.lower(about)]

if book == "tutejsze zasoby" then
return
Expand Down
2 changes: 1 addition & 1 deletion skrypty/misc/knowledge/libraries.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function scripts.misc.knowledge:start_reading_library(about)
end

local library_name = scripts.misc.knowledge.location_to_library[amap.curr.internal_id]
local about_proper = misc.knowledge.declension_category[about]
local about_proper = misc.knowledge.declension_category[string.lower(about)]

local library_row = scripts.misc.knowledge:get_or_create_library_about(
library_name,
Expand Down

0 comments on commit 495dc37

Please sign in to comment.