1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

Update builtin/mainmenu/content/contentdb.lua

This commit is contained in:
grorp 2025-05-18 17:40:07 -04:00 committed by GitHub
parent 6ec55dd0f7
commit acc81950bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -169,6 +169,7 @@ function contentdb.get_package_by_id(id)
return contentdb.package_by_id[id]
end
local function strip_game_suffix(type, name)
if (type == nil or type == "game") and #name > 5 and name:sub(#name - 4) == "_game" then
return name:sub(1, #name - 5)